Jump to:

17488 Posts in 4473 Topics by 1978 members

Archive

SilverStripe Forums » Archive » Pagetype and datatype

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

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 974 Views
  • erwanpia
    Avatar
    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
    Avatar
    Forum Moderator
    889 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.

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