21309 Posts in 5738 Topics by 2603 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 603 Views |
-
[SOLVED] sitemap.xml and google sitemap tab option 2.3.3

19 February 2010 at 7:23am Last edited: 19 February 2010 8:47am
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 -
Re: [SOLVED] sitemap.xml and google sitemap tab option 2.3.3

19 February 2010 at 8:46am Last edited: 19 February 2010 8:46am
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!
| 603 Views | ||
|
Page:
1
|
Go to Top |

