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

Avatar
johannes

13 October 2010 at 8:32am Community Member, 20 Posts

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

24 October 2010 at 3:39am Forum Moderator, 1796 Posts

How about...

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

   $this->Priority= $ -1;

}

Avatar
cSGermany

9 September 2013 at 3:05am Community Member, 37 Posts

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

Thx in advance

cSGermany