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.

Customising the CMS

Custom Page Types in CMS


Reply

2 Posts   1171 Views

Avatar
bartvanirsel

13 July 2009 at 7:17am Community Member, 94 Posts

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

Avatar
bartvanirsel

18 July 2009 at 2:56am Community Member, 94 Posts

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

In the Model class add:

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