for a new project, i’d like to use the Kirby Webpack Starterkit from @pqml as mentioned in another Topic. But there seem to be some behavioral problems with either the Modules/Sortable Plugin.
I normally don’t get this errors. Is it possible that with the Kirby Webpack Starterkit moving the site structure to a parent folder www/ is causing some problems? Did someone else have this problem in the past and could figure it out?
i’m referring to the Sortables Plugin (since this would be my optimum solution for now). I followed the Setup Instructions for the invisible modules Folder as said in the Modules Plugin GitHub and then set the fields options for the Sortable Plugin accordingly:
i then get the parse error when trying to paste some module and get the strange error that i can’t sort the modules anymore when i dragged one of them…
What I was referring to was the first error message. It seems that you put the modules plugin into the fields folder instead of in the plugin folder. Maybe that also causes the second problem, but not sure.
No i only have the modules Plugin in the plugins-folder and the sortable Plugin. Both plugins are registered in the kirby.config.json. What am i doing wrong here?
I don’t know, I’m not familiar with this kit, but if you look at the error message in your first screenshot and where it is caused, it says/site/fields/modules/modules.php, so where does this come from if it is installed in the plugins folder?
As i said i don’t get both errors together. Since i now only use the Sortable Plugin only the parse error occurs. I get an console error when clicking on the second (copied) one…See this GIF:
I just setup a fresh copy of the kirby webpack together with sortable and the modules. I also brought code from a site i know works fine with these plugins, with kirby 2.5.12 and it all breaks. Kirby webpack seems to mess with the way configs and stuff work out of the box. It’s late and im tired so maybe i made a mistake somewhere, but im pretty sure something in the way that kirby webpack works is interfering with the modules plugin.
Okay Thank you Jimbo, since i was setting up so many projects with the same Plugins before i really was wondering what the hack happened there… So glad you ran into the same errors…
I just tested a fresh Webpack kit with just the sortable plugin (without the modules plugin) and it works without any problems, using your blueprint from above.
Maybe the problem is that your “modules” that are no longer modules have a prefix that is not defined in the blueprint? Only guessing here…
When i use the sortable Plugin without the modules structure under /site just by using default pages i don’t get the console error. But still get the parse error Debugger when i try to paste in a page (Button on the left next to copy). You don’t get this error?
No, as I said, no console error and no PHP parse error. Kirby 2.5.12 and php 7.2.10.
I used the examples from the demo branch of the modules plugin, put them into site/modules. Then selected either the gallery or the text module when creating new modules via the sortable field.
Hm then i don’t know. Could you send me the yml of the page you were using sortable on? Is it with the described build of the modules parent page? That would be very nice.
Hm i don’t know what i am doing wrong here. Same Blueprint same errors. Since i’m at the very beginning of the project, could you send me your ZIP for the whole Setup? That would be nice.