MAD
MAD
TCTwill CMS
Created by MAD on 10/18/2024 in #👊support
Position reordering not working
Hi! I am checking Twill out to see if it's a match for our next project. It looks really promising but I walked into a small problem with the first guide "Building a simple page builder with Laravel Blade". I've successfully ran through it but the section "Adding navigation" gives me a small problem, the code works fine and gives no errors or whatsoever. However, the frontend does not work. When I drag a menu item to a new position or drag it to be a child of another item the frontend will reply that the order has been changed, yet when I reload there is no change. The response of the xhr request contains: variant: 'success', it's just that the database is not updating and reflecting the changes. If I change the values in the database myself the frontend reflects those and it works nicely. But I'm not so keen on changing on positions by hand all the time 😅 Can anyone point me in a direction on where to look / debug this issue? Thanks!
7 replies