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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Form Questions /

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

Frontend TableField: 404: I can't handle sub-URLs when deleting Item

Go to End



Community Member, 271 Posts

17 November 2009 at 7:33am

Edited: 17/11/2009 7:33am


I have TableField on a frontend form which displays fine and editting and adding items works as well.

But when I try to delete an item I get the 404 message:

I can't handle sub-URLs of a SubmitPage_Controller object.

This is my field ( which does work in the CMS):

$beschikbaarfield = new TableField("Beschikbaarheid",
				'LangWeekendVrMa'=>'Weekend vr-ma',
				'MidWeekMaVr'	 => 'Midweek ma-vr',
				'Week1MaMa'  	 => 'Week ma-ma',
				'Week1VrVr'  	 => 'Week vr-vr',
				'Week1ZaZa'  	 => 'Week za-za',
				'Week2VrVr'  	 => '2 Weken vr-vr'
			  ), // fieldList
				'MidWeekMaVr'	 => 'TextField',
				'Week1MaMa'  	 => 'TextField',
				'Week1VrVr'  	 => 'TextField',
				'Week1ZaZa'  	 => 'TextField',
				'Week2VrVr'  	 => 'TextField'

And this is the deletelink in the TableFieldItems:

I think I have to add a new Directorrule, but don't know how to build that up.

Any clues?