rlwsota Posted April 4, 2016 Share Posted April 4, 2016 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 More sharing options...
rlwsota Posted April 5, 2016 Author Share Posted April 5, 2016 Sure enough, after posting I found this: https://processwire.com/talk/topic/10562-general-question-is-there-a-difference-between-adding-prependappend-file-to-template-and-include/. Using the 'include' in the template php file solved the issues. Now I'll just crawl back into my newbie hole. 3 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now