- Open a Command prompt in a folder outside your XperienCentral installation folder where you would like to create your design template plugin,
- Run the following Maven command and replace "version" with your version of XperienCentral, the "artifact ID" with a name of your choice and be sure to add the correct path to your installation's settings.xml file.. The command is one string.
mvn archetype:generate -DinteractiveMode=false
- You have to fill in the XperienCentral version that you are using with the property ‘DarchetypeVersion’. In the above example it’s version 10.36R36 — the version number of XperienCentral used in code must take the form 10.x where x is the major/minor version number. For example, XperienCentral version R35 is declared as 10.35 in code and XperienCentral version R35.1 is declared as 10.35.1.
- In this example the plugin will be named "helloworldDesign template" and all examples in this topic will use that name.
You should see a ‘Build successful’ message from the Maven command and the helloworldDesign template folder should be created. The created folder structure is:
Code Block theme Eclipse
/src/main/.. /java/nl/gx/product/Activator.java /resources/Design templatetype/.. /jsp/ /static/helloworldDesign
- Create several subdirectories in the
/static/helloworldDesign templatefolder for storing the various types of static files (img, css, js, and so forth).
- Copy your static files from the design to the
Create several subdirectories in the
/jsp/folder for storing the various types of design templates (page, element, forms, pageparts, and so forth).
If a Design template plugin depends on design template JSPs that are part of the original XperienCentral platform, these JSPs should be copied to the design template plugin in the directory:
Copy the received HTML file from the design into the
../jsp/page/folder, and rename it to (for example)