Jump to content

Changing Template Append File via API


rlwsota
 Share

Recommended Posts

I have a template file that I would like appear differently under different conditions (call them ’standard’ and ’special’). As part of the layout matters, I want to change the Append File (Templates -> Edit Template: XXXX -> Files -> Append File) just for the special case (i.e., not permanently). I have no Append File in the _init.php because I use several layouts throughout the site and use Append File for each template.

For example, the standard case will have Append File as _pageLayout1.php, but for those special cases I want to change the Append File to _pageLayout2.php.

I’ve looked through the Forums and API documentation but haven’t been able to find a way to do it. Of course I’ve probably missed previous queries on the topic or it is blindingly simple, but I’m stuck.

Any suggestions?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...