Home > Hippo, Java > Using The Hippo CMS Rijkshuisstijl Toolkit Archetype

Using The Hippo CMS Rijkshuisstijl Toolkit Archetype

We proudly announce the release 1.4 of ‘The Hippo CMS Rijkshuisstijl Toolkit archetype’. This toolkit offers web developers a faster way to create Dutch government websites based on the Rijkshuisstijl (the official User Interface Guideline for implementing such websites), using the ‘Webrichtlijnen’ best practices.

The purpose of this toolkit is to create an out of the box Hippo CMS 7 project with a ready for use Rijkshuisstijl site.

Requirements

In order to use the Maven archetype, you will need to have Java 6 and Maven version 2.2.1 or higher installed.

Creating the project

There are 16 color templates defined in the Rijkshuisstijl that can be used within the archetype:

Rijkhuisstijl color scheme

Replace the following variables in the Maven archetype commands:
-Dcolor= The color template of the new project. (e.g. light_blue) if not specified, the color ‘red’ will be used in the site.
-DgroupId= The base package of the new project. (e.g. com.mycompany).
-DartifactId= The name of the new project. (e.g. myproject*).

Open your console, go to the folder where your project should be created and run the Maven archetype command:

mvn archetype:generate \
-DarchetypeRepository=www.iprofs.nl/repository/ \
-DarchetypeGroupId=nl.iprofs \
-DarchetypeArtifactId=rijkshuisstijl-toolkit-archetype \
-DarchetypeVersion=1.4 \
-DgroupId=my.company \ 
-DartifactId=myproject \ 
-Dversion=1.0 \ 
-Dcolor=ruby

A new folder will be created (with the specified name in artifactId*), containing a Hippo CMS 7 project and sub-modules with the following file structure:

/cms/ Hippo CMS project
/site/ The HST-2 Java Web Application project
/conf/ Hippo configuration
/content/ Bootstrap content project
/documentation/ Rijkshuisstijl 4.4 / Webrichtlijn 2.0 documentation.
/pom.xml The parent maven pom

Building and running the generated project

Open your console in the created project folder (specified in artifactId*), run the following mvn command:
mvn clean install

to run the CMS and website:

mvn -P cargo:run

By starting the server the CMS and the Site will become available:

CMS http://localhost:8080/cms
Site http://localhost:8080/site

Release notes

Version 1.4:

  • Updated archetype to Hippo CMS version 7.7.2
  • Rijkshuisstijl CSS version 1.1.3
  • Rijkshuisstijl v.4.4 and Webrichtlijnen v.2.0 documentation.
  • Out-of-the-box components: menu, header, footer, homepage (with tongue), content page (with basic elements).
  • Out-of-the-box content/template/document types for newsoverview, newsdocument and textdocument.
  • Search functionality.
  • Breadcrumb component.
  • Sitemap component.

The Hippo CMS 7 Rijkshuisstijl Toolkit archetype is released with the AGPLv3 license and you can find the source code of the last version of the archetype at: https://github.com/iPROFS/hippo-rijkshuisstijl-archetype

Links

http://www.rijkshuisstijl.nl/
http://www.webrichtlijnen.nl/
http://www.onehippo.org
http://wiki.onehippo.com/display/CMS7/Hippo+Baby+Steps

* Note: Because the artifacId is being used for different Hippo configurations, non-alphanumeric characters are currently not supported in this archetype property.

About these ads
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 205 other followers