solved How to load TPL from a different folder and show folder name in url?

musicianband
@musicianband
10 years ago
45 posts
Hello! How can I make a new folder in system, put template files in it and load them showing in the same time folder name in url?

Like:
network: www mynetwork dot com
folder name: "newfolder"
template file: "sometemplate.tpl"
desired result: www mynetwork dot com/newfolder/sometemplate , not showing "The page you requested was not found!" but actually load the template?

I tried to make a new folder inside skin directory and put tpl files in it, typed the url accordingly, but, obviously did not do the job.

Also, I tried to make a new folder inside installation directory, main directory, and put tpl files in it, typed the url accordingly, but, again, that did not do the job.

I would really appreciate any guidance considering this issue!

Thank You!


updated by @musicianband: 10/26/14 03:32:25PM
brian
@brian
10 years ago
10,148 posts
Unfortunately no - Jamroom is not setup to parse templates from sub directories - you can "emulate" that however by creating a custom module.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
musicianband
@musicianband
10 years ago
45 posts
Thank you! I will consider creating a module! Thank you again for saving my time as I was trying for 2 hours now for a way to do it, now I have a direction!
Best Regards
brian
@brian
10 years ago
10,148 posts
musicianband:
Thank you! I will consider creating a module! Thank you again for saving my time as I was trying for 2 hours now for a way to do it, now I have a direction!
Best Regards

No problem - glad to help!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags