In content management systems like OpenCms or Magnolia, you often run into the problem of having to replace UUIDs. I wrote a little Bash script for that. import info.magnolia.importexport.DataTransporter import javax.jcr.ImportUUIDBehavior import groovy.io.FileType def list = [] def dir = new...
If you have worked with Magnolia (CMS) or OpenCms (or JSPs in general) before, you may have experienced the problem with unwanted whitespace in the resulting HTML. Of course, in Magnolia, you rarely work with JSPs anyway. There are ways to avoid this by configuring the web.xml in the following way:...
I wanted to change the language of pages in the control code. There is something in the "Content Tools" of OpenCms called "Change Element Locale", but that only changes the locale-property on pages. So I exported the content (Export Database), unzipped it, and used the following bash command: find...
This script is aimed at developing modules for OpenCms, importing them into your Java project, editing them in your IDE and exporting them back to the VFS of OpenCms. I extended the "OpenCms ANT Build" with a little AntForm and the possibility to deploy modules via scp and sshexec. Download and...