solved Adding another folder in skin directory

boplive
@boplive
7 years ago
345 posts

Hi guys,

I hope the week has been going well:)

I been creating my own custom tpl files in the skins directory...(example AudioPro)

What if I now want to make a folder (like the css, js folder, etc) in that skin directory ..call it "Custom" and move all the custom tpls files from the skin's directory into that folder...

I'm thinking if I ever want to try any of my custom layout in a different skin..it will be much easier to upload the folders with files..and add a few lines here and there..than upload many files and adjust it all to make it work..hope I made sense :)

Is this something I have to now add some info to the include.cfg file

I tried this code below and nothing happened..or is there a different place to make that folder with the files work in the directory
    // Register our Custom files with the core
    jrCore_register_module_feature('jrCore', 'custom', 'jrAudioPro', 'otherevent.tpl');

updated by @boplive: 06/16/17 07:39:37AM
michael
@michael
7 years ago
7,718 posts
Thats not going to work. If im understanding correctly you have
/skins/jrAudioPro/

and your adding extra .tpl files to
/skins/jrAudioPro/custom/fileone.tpl
/skins/jrAudioPro/custom/filetwo.tpl
/skins/jrAudioPro/custom/filethree.tpl

and you're wanting them to show up at:
yoursite.com/fileone
yoursite.com/filetwo
yoursite.com/filethree

... wont work.

Before making changes to a skin, you should be cloining it to xxAudioPro or other name
/skins/xxAudioPro

so your changes dont get lost when updates come in.

I can understand the concept, wanting to just add in over-rides for the skin. We talked about a similar idea a while back where a skin could be a sub-skin of an existing skin.

eg:
/skins/jrAudioPro/(all the files)

then have a sub-skin of that
/skins/xxAudioProSubSkin/index.tpl

Where if the sub skin had a .tpl that matched the one in the master, and the sub skin was active, then the subskins version would be used.

The idea has been put in the backburner as it seams like a developer feature that would be used very rarely.

You may be able to use a folder in an include.
NORMAL:
{jrCore_include template="header.tpl"}
TRY:
{jrCore_include template="custom/header.tpl"}
boplive
@boplive
7 years ago
345 posts
Hi there Michael,

Yup..i do have it cloned..
I'm going to give the include a try.. :)

Will keep you updated
Thanks

Ed

Tags