Jump to:

2002 Posts in 1422 Topics by 616 members

Form Questions

SilverStripe Forums » Form Questions » Frontend TableField: 404: I can't handle sub-URLs when deleting Item

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

Page: 1
Go to End
Author Topic: 1169 Views
  • Martijn
    Avatar
    Community Member
    271 Posts

    Frontend TableField: 404: I can't handle sub-URLs when deleting Item Link to this post

    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:

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

    Any clues?

    1169 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.