Jump to content

Template show from a different directory ?


Recommended Posts

Posted

When I use Template::show I understand that it looks in the skin folder first and then goes to core/templates to find it.

Is there a way that I couls add a directory in the middle ? so it would look in the skin directory first, then a secondary directy, THEN move onto core/templates ?

Any help would be greatly appreciated (I am running multiple skins and would like to make use of this so that I can only edit one file and affect all templates. I could use the core/templates folder but I think I would loose everything during an upgrade )

  • Moderators
Posted

if you create a folder in core/ templates and add your TPL in there you won't loose them during an upgrade.

You would then access it like (foldername/file.tpl) using the template::show().

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