jonom / silverstripe-betternavigator

Front-end utility menu for SilverStripe websites featuring administration and development tools
60 stars 31 forks source link

Not included on form response rendered with ->renderWith() #58

Open howardgrigg opened 2 years ago

howardgrigg commented 2 years ago

I'm likely doing something wrong but I have a form "InfusionInputsForm" that gets filled out, the FormAction function (calculateInfusion) then does a bunch of calculations and then returns return $arrayData->renderWith(['Infusion']);. That template is rendered correctly but the navigator isn't displayed.

I have defined a BetterNavigatorEditLink() in that pages controller that looks at the ID passed into the form and returns a URL to edit that object directly (i.e. not the page). I note that the URL remains the name of the form function localhost/page/InfusionInputsForm after submitting the form.

Just not sure where to go from here with regards to getting the navigator displayed. Thanks.