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.
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.
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'); ?>
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.
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…
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.