closed jrCore_include and sub directories

gary.moncrieff
gary.moncrieff
@garymoncrieff
11 years ago
865 posts
Hey

My skin template is becoming very large and I am wondering is it possible to put groups of templates in sub folders within the skins directory and then include these using the jrCore_include function.

I have tried various ways, full url, absolute path and relative path and nothing works.

Thanks
updated by @garymoncrieff: 12/18/14 04:48:10AM
brian
@brian
11 years ago
10,149 posts
gary.moncrieff:
Hey

My skin template is becoming very large and I am wondering is it possible to put groups of templates in sub folders within the skins directory and then include these using the jrCore_include function.

I have tried various ways, full url, absolute path and relative path and nothing works.

Thanks

Unfortunately it's not quite as easy as just saying "look in the sub directory" due to how templates can be overridden and modified from the CP. I know that doesn't help you, but maybe try prefixing your templates depending on where they are used?

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
gary.moncrieff
gary.moncrieff
@garymoncrieff
11 years ago
865 posts
ok thanks

Tags