1770 Posts in 495 Topics by 531 members
Blog Module
SilverStripe Forums » Blog Module » Cannot remove Google Sitemap Field from Blog
Discuss the Blog Module.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1416 Views |
-
Cannot remove Google Sitemap Field from Blog

28 July 2010 at 11:09am
I cannot remove the Google Sitemap field from blog pages. I can remove other fields but the Google Sitemap field will not go away.
$fields->removeFieldFromTab('Root.Content.GoogleSitemap', 'Priority');
$fields->removeFieldFromTab('Root.Content', 'GoogleSitemap');Can anybody else make it go away?
-
Re: Cannot remove Google Sitemap Field from Blog

28 July 2010 at 12:37pm Last edited: 28 July 2010 12:39pm
I use:
$fields->removeFieldFromTab('Root.Content','GoogleSitemap');
to remove the tab completely.
Edit: I know you said this didn't work, but that is what i use in my Page.php getCMSFields() to remove the tab. Maybe try again?
-
Re: Cannot remove Google Sitemap Field from Blog

28 July 2010 at 12:55pm
Thanks for your reply. I tried that exact code in both Page.php and BlogEntry.php and while I can successfully remove all other fields and tabs, the Google Sitemap Field does not go away.
-
Re: Cannot remove Google Sitemap Field from Blog

27 January 2011 at 2:05pm
Try this:
$fields->removeByName("GoogleSitemap");
| 1416 Views | ||
|
Page:
1
|
Go to Top |



