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 /

Set default for Sitemap Priority


Reply


3 Posts   1121 Views

Avatar
johannes

Community Member, 20 Posts

13 October 2010 at 8:32am

Hi there,

I try to set a default value for a page type, but

public static $defaults = array('Priority' => -1);

doesn't help.

Is there a way to set a default, because the page shall not appear in it and I don't think the editor will even know what a sitemap is.

Avatar
swaiba

Forum Moderator, 1798 Posts

24 October 2010 at 3:39am

How about...

public function populateDefaults()
{
   parent::populateDefaults();

   $this->Priority= $ -1;

}

Avatar
cSGermany

Community Member, 37 Posts

9 September 2013 at 3:05am

Hi
I've got the same problem. Is there a way to do this in ss 3.0.5 ?

Thx in advance

cSGermany