Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » Extend Page with SilverSmith

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 506 Views
  • fabioC
    Avatar
    Community Member
    2 Posts

    Extend Page with SilverSmith Link to this post

    How can I extend the default Page (mysite/code/Page.php) with SilverSmith?

    my _project.yml file:

    PageTypes:
    --Page:
    ----Fields:
    ------SubHeadline: {CMSField: Text}

    Where should I insert the code delimiters that SilverSmith won't destroy the default Page.php? I use SilverStripe 3.0.5
    Thanks!

  • UncleCheese
    Avatar
    4085 Posts

    Re: Extend Page with SilverSmith Link to this post

    Yeah, this is a bit of a grey area. You have to add the delimiters manually. Ultimately, I think a better solution would be for SilverSmith to create a PageDecorator class for you.

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