Back to Modular Theme with PAGE BUILDER - Clear Support

flothus33542
flothus33542

Is there an easy possibility to extend the plugin with an option (a sync checkbox or a button) to copy over all the blocks (new added blocks) from one language to another? So you just can fill in the new language?

It's rather laborious for a client to build the whole layout again to add another language.

Last updated

Charis
Charis

flothus33542 said:

Is there an easy possibility to extend the plugin with an option (a sync checkbox or a button) to copy over all the blocks (new added blocks) from one language to another? So you just can fill in the new language?

It's rather laborious for a client to build the whole layout again to add another language.

Hello!
This is the native Octobercms behavior on repeater fields, when you change language you have to create the fields again.
You have right, on multi language sites with a lot of languages this could take some time to implement. Maybe a pull request will solve this issue on future Octobercms updates.

flothus33542
flothus33542

Hi Charis, thanks for the fast reply! I just realised your builder isn't extending static-pages. I didn't even know it's possible to do all those things just within a theme, interesting!

Right, it's Ocms default behaviour. But is it a lot of work to implement a syncing function by creating a plugin for your theme that extends the static-pages? Probably it's possible to add an ID to every section and have a method to check if they exist for the file in the other content folder for another language and if not add them in.

A function to have a dropdown field (with links to other CMS pages e.g.) would be awesome, too. I saw it is possible to have "dropdown" as a field type in the YAML file, I guess there is just no method in static-pages to populate the dropdown with items.

I would try to implement it, but I have no experience with extending plugins so far.

Francesco
Francesco

+1 for the copy/duplicate function Thanks

1-4 of 4