Jump to:

3393 Posts in 976 Topics by 852 members

Template Questions

SilverStripe Forums » Template Questions » Is possible to change file extension

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

Page: 1
Go to End
Author Topic: 1199 Views
  • leafchild
    Avatar
    Community Member
    41 Posts

    Is possible to change file extension Link to this post

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

    ex)
    filename.ss ->filename.php

  • Ryan M.
    Avatar
    Community Member
    309 Posts

    Re: Is possible to change file extension Link to this post

    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?

  • leafchild
    Avatar
    Community Member
    41 Posts

    Re: Is possible to change file extension Link to this post

    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.

  • Ryan M.
    Avatar
    Community Member
    309 Posts

    Re: Is possible to change file extension Link to this post

    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.

    1199 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.