Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Rendering templates from outside the template folder


Go to End


1453 Views

Avatar
craigm

Community Member, 9 Posts

31 May 2010 at 4:55pm

Hi,

Im trying to build a module that allows silverstripe template files to be uploaded via the default 'Files & Images' upload section and have the correct template implemented by the page controller depending on what ID i pass it through in the URL.

Everything else im my module is working fine, however i cant figure out a way to call a template file that resides in my assets folder, not in the templates folder for that module.

Is this even possible?

If not, i guess ill just FTP the template files up whenever i need to upload them, but it would be nice to handle it all through the SS CMS.

Cheers,

Craig.