bootstrap4-modules-4.6.0
What's new in this version?
#12 Rename grid area to allow copy/paste.
#16 Fix conflict on card
#17 Grid layout support of container-{breakpoint} class
WARNING: Migration to Bootstrap 4 v4.6.0
Please read carefully this part if you update Bootstrap 4 v4.6.0. We did refactor the Layout / Grid component by renaming the generated areas.
From version v4.6.0 of Bootstrap 4 component, the contentList above a Layout / Grid component do not contain the systemName of the grid anymore. As a result, you will be able to copy/paste or rename a Layout / Grid component without losing the content (or having ghost content).
This feature is only working on site content (not for Layout / Grid component created in the studio)
How to apply this refactoring?
A groovy script has been made to refactor existing content. To execute this script, go to the Groovy Console (via the tools http://localhost:8080/tools). The name of the script is grid-rename.groovy
First, you can execute this script to test it without checking the Apply refactoring. It will list the nodes that will need to be updated. Then, you can check the Apply refactoring to save the updates by on the default workspace.
If you get an error during script execution, have a look at the console to get the list of nodes to manually publish. Then you can try to run the script again until there is no more errors.
What is done on this script?
This script executes a query on your default repository and check on all Layout / Grid nodes if we need to rename the sub-nodes of type contentList to remove the grid systemName.
What is not done with this script grid-rename.groovy?
This script updates the default workspace and publish nodes without pending modifications. All nodes with pending modification need to be manually published to be visible in live.