Jump to:

22976 Posts in 11493 Topics by 2824 members

General Questions

SilverStripe Forums » General Questions » [SOLVED] sitemap.xml and google sitemap tab option 2.3.3

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 731 Views
  • steve_nyhof
    Avatar
    Community Member
    224 Posts

    [SOLVED] sitemap.xml and google sitemap tab option 2.3.3 Link to this post

    Has anyone ever fixed the issue of the "Not indexed" option in the Google Sitmap tab?

    I removed a few lines of code and was able to make it stay, but now it is not doing the work of "Not indexing" the page in the sitemap.xml file.

    Only pages where I turn off the menu and search in the behavior tab, shuts them off, but I need the pages in the menu for permission based pages.

    What is Show in Search anyway? What does it do? I'm guessing it is for search results using the search box option.

    Any help please!

    Thank you,
    Steve

  • steve_nyhof
    Avatar
    Community Member
    224 Posts

    Re: [SOLVED] sitemap.xml and google sitemap tab option 2.3.3 Link to this post

    This is what I did and it seems to work...

    Changed this on line 167 from:

    '' => _t('SiteTree.PRIORITYAUTOSET','Auto-set based on page depth'),

    Changed to:

    '-1' => _t('SiteTree.PRIORITYAUTOSET','Auto-set based on page depth'),

    --

    Then on line 227, I changed

    return 0;

    to:

    return -1;

    When you make a new page, it will default to the right level, when you save on "Not indexed" it saves and remove the page from the sitemap.xml file. However, the auto level does not work - good for me!

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