Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

Custom Page Types in CMS

Go to End

2 Posts   1372 Views


Community Member, 96 Posts

13 July 2009 at 7:17am


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,



Community Member, 96 Posts

18 July 2009 at 2:56am

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

In the Model class add:

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