Jump to:

10994 Posts in 2728 Topics by 1819 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: 519 Views
  • fabioC
    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:

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

  • UncleCheese
    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.

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.