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.

Form Questions /

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


Reply


1276 Views

Avatar
Martijn

Community Member, 271 Posts

17 November 2009 at 7:33am

Edited: 17/11/2009 7:33am

Hi,

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",
            'Beschikbaar',array(
            'AankomstDatum'=>'Aankomst',
            '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
          array(
            'AankomstDatum'=>'TextField',
            'LangWeekendVrMa'=>'TextField',
            'MidWeekMaVr'    => 'TextField',
            'Week1MaMa'     => 'TextField',
            'Week1VrVr'     => 'TextField',
            'Week1ZaZa'     => 'TextField',
            'Week2VrVr'     => 'TextField'
          ),
          "WoningID",
          $this->ID
         
         );

And this is the deletelink in the TableFieldItems:

http://mysite.nl/mypage/PropertyEditForm/field/Beschikbaarheid/item/4/delete

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

Any clues?