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.

General Questions /

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

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

Can't remove tabs from extended RedirectorPage

Go to End

3 Posts   1200 Views


Community Member, 191 Posts

20 October 2012 at 5:29am


I'm able to extend RedirectorPage. But for some reason, I can't remove tabs that I've created for other pages. I've successfully done this on other extended pages like BlogHolder. I tried removing 'MenuTitle' just to test and that works fine. So I tried removing fields from my tabs instead of the whole tab and that didn't work either. Just wondering if anyone has experienced the same issue.

class RedirectorPageCustom extends DataExtension {

	static $has_one = array(
	function updateCMSFields(FieldList $fields) {
		// REMOVE    
		$fields->removeByName('FancyList');  // NOT WORKING 
		$fields->removeByName('CallOut');    // NOT WORKING 
		$fields->removeByName('Widgets');    // NOT WORKING  
		$fields->removeByName('Snippets');    // NOT WORKING  
		return $fields;




Forum Moderator, 5523 Posts

24 October 2012 at 8:23pm

I assume this is because the extension is called before the RedirectorPage getCMSFields. BlogHolder has a bit of a hack to get the order correct.

Seems like a terrible workaround though..


Community Member, 191 Posts

25 October 2012 at 3:10am

Seems like it was working in pre-SS3 if I'm remembering correctly. Either way, thanks for the info Willr.