Jump to content

Recommended Posts

Posted

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.

  • Administrators
Posted

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

  • Administrators
Posted

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.

:o

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.....

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...