piper338 Posted February 3, 2010 Report Posted February 3, 2010 I was wondering if it is possible to have folders inside my skin to organize the tempaltes. ex. lib/skins/mynewskin/frontpage/frontpage_main.tpl My skin folder for my new design is just getting messy. Quote
Administrators simpilot Posted February 4, 2010 Administrators Report Posted February 4, 2010 You sure can Just put a folder inside of your skin folder and put the tpl files you want in there, then when you call for that template do this -> <?php $this->show('my new folder name/my template.tpl'); ?> Quote
Kritikdevelopment Posted February 4, 2010 Report Posted February 4, 2010 It wouldnt work if you are planning on using those templates to override the core/templates ones. The core looks for the templates in the core/templates directory and the skins/SKIN directory. Quote
Administrators simpilot Posted February 4, 2010 Administrators Report Posted February 4, 2010 It wouldnt work if you are planning on using those templates to override the core/templates ones. The core looks for the templates in the core/templates directory and the skins/SKIN directory. What do you mean it wont work - I do it all the time, both on the admin side and the public side. If you put a folder inside of your skin folder, as explained above, then point your call for the template to that folder/template it will call it without an issue..... Quote
Kritikdevelopment Posted February 5, 2010 Report Posted February 5, 2010 I mean it wont work for overriding a default template. I cannot drop my frontpage_main.tpl into a WAZOO ( or other name ) directory and expect it override the default in the core/templates. Pathing yes will work, but it wont override the default just shadow it. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.