It’s very flexible, I can move around modules in it and delete them.
What if I want to add my existing custom modules to it? I know that I can import them this way:
The problem with this approach is that I can’t move my modules around, can’t delete them, I’m literally stuck with this layout on the page.
My question is if it’s possible to create a template with custom modules that are initially hard-coded but can be rearranged, have the possibility to add more modules, and be deleted within an editor.
thanks
shouldn’t be used for new templates. It’s a solution if you want to migrate an “old” template to the new drag&drop function. The old function was called “flexible column” which was kinda like the new drag&drop function.
If you want to have a fully drag&drop experience I recommend you to write the code like this:
{% block body %}
{% dnd_area 'Main area' %}
...
{% end_dnd_area %}
{% endblock body %}
I can’t put dnd_module as a direct child of dnd_area, so it has to be within dnd_column and dnd_row in order to show on the page.
The problem that I have is that it’s kinda tricky to rearrange them due to dnd column/row built in behaviour. Currently, I can put modules side by side like so: