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

Is possible to change file extension


Go to End


4 Posts   1949 Views

Avatar
leafchild

Community Member, 41 Posts

17 February 2011 at 11:04am

I want change template file type.
Is possible to do change file tipe?

ex)
filename.ss ->filename.php

Avatar
Ryan M.

Community Member, 309 Posts

17 February 2011 at 12:54pm

I don't think so, at least not without some heavy customization of how Sapphire processes templates.

Are you looking for a PHP-based templating engine?

Avatar
leafchild

Community Member, 41 Posts

17 February 2011 at 1:02pm

Thank you for the response.

I used cakePHP and cake allows to change template file type from filename.ctp -> filename.whatever-extension
so I thought it's possible to do it with SS.

I just prefer to use something.php file type.

Avatar
Ryan M.

Community Member, 309 Posts

18 February 2011 at 8:13am

I haven't used any different templating engines with SS, but maybe somebody else here has.

Otherwise, I'd probably say you have to hack the core a little bit to get it to accept .php templates. IMO, not worth the trouble.