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.

Template Questions /

Rendering templates from outside the template folder


Reply


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