26 October 2006 at 7:39pm
I'm wondering what is the best practice for including one template into another? I'm having site for which I want footer to be same across multiple page types/templates but so far I didn't manage to achieve this.
I'm aware of $layout and $content automatic inclusion but I want single include for all page types (not as $layout or $content)...
Also is there general include method for page templates?
4 November 2006 at 12:47am
I've tried example you gave me but it doesn't work. Template named FooterMenu.ss in my case is never included in main template I've checked manifest file in cache dir and file is found and included into array $_TEMPLATE_MANIFEST... But include in never done. Deleted cached verison of the parent page but no luck...
Another small thing. If this FooterMenu.ss contains some template code (getMenu() for instance, which existis in parent template) do I need to have page type for it?
I've tried that also but it didn't work but I want to know for future reference...
8 November 2006 at 3:58am
(Last edited: 8 November 2006 7:34pm),
Somehow include does work now. I didn't do anything (just started writing you an email with templates) just tried again just to be sure before sending an email. Maybe my environment is broken in some less than obvious way which i can't detect...Some hidden cache? Are there any tests to certify that environment is installed properly?