Jump to:

5451 Posts in 1673 Topics by 1197 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Set default for Sitemap Priority

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

Page: 1
Go to End
Author Topic: 1042 Views
  • johannes
    Avatar
    Community Member
    20 Posts

    Set default for Sitemap Priority Link to this post

    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.

  • swaiba
    Avatar
    Forum Moderator
    1769 Posts

    Re: Set default for Sitemap Priority Link to this post

    How about...

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

       $this->Priority= $ -1;

    }

  • cSGermany
    Avatar
    Community Member
    37 Posts

    Re: Set default for Sitemap Priority Link to this post

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

    Thx in advance

    cSGermany

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