Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Pagetype and datatype

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1104 Views
  • erwanpia
    Community Member
    63 Posts

    Pagetype and datatype Link to this post

    Hi, is it possible in silverstripe to create a specific data type with specific fields AND let it choose the template ? the way I do it currently is by extending the Page and PageController and associationg with ss files but I would like to create page and pagecontroller that can choose their template ?

  • Sean
    Forum Moderator
    921 Posts

    Re: Pagetype and datatype Link to this post

    If you extend Page you can use a specific template for that extension to it.

    For example, MyCustomPage extends Page.

    If you define MyCustomPage.ss then it will use that template.

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.