Jump to:

5450 Posts in 1672 Topics by 1197 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Custom Page Types in CMS

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

Page: 1
Go to End
Author Topic: 1117 Views
  • bartvanirsel
    Avatar
    Community Member
    88 Posts

    Custom Page Types in CMS Link to this post

    Hi,

    I am trying to get my custom page type to be displayed in the CMS with a custom name.

    Managed to do this by using the language file in this way:
    $lang['nl_NL']['PortfolioPage']['SINGULARNAME'] = "Portfolio Pagina";

    In the CMS the folowing gets dispayed:

    Portfolio Pagina (PortfolioPage)

    Is there a way to get rid of: (PortfolioPage)? Is there a way to directly set the SINGULARNAME in the PortfolioPage class in PortfolioPage.php?

    Best regards,

    Bart

  • bartvanirsel
    Avatar
    Community Member
    88 Posts

    Re: Custom Page Types in CMS Link to this post

    Figured it out myself, in facts it's very easy.

    In the Model class add:

    static $add_action = 'name of the page type';

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