Name:
Password:
remember me
or register
Valid XHTML 1.0 Transitional Valid CSS! SourceForge.net Logo
Get your design in a CMS in 5 minutes
There are quite a lot of content management systems around. Corinis is one of them. This article shows how fast you can get results with the Corinis way of implementing.
Minute 1 - installation

The first thing you do is to download and install the Corinis CCM. If you have problems or questions, check out the wiki.

When tomcat started you are ready.

Minute 2 - prepare the jsp

Create a cms.jsp in your webroot (or give it some other name). Put following code into it:

<%@ taglib uri="/corinisTags" prefix="corinis" %>
<corinis:cms/>

 Open it in your webbrowser, and your cms works already!

Minute 3 - Create your template

Login to the amdinistration pages (http://localhost/corinis) go to Cms->Templates and create a new template. 

<html>
<body>
<h1><corinis-fieldtype="edit"name="header"/></h1>
<h2><corinis-fieldtype="richedit"name="abstract"/></h2>
<corinis-repeatablename="content">
<corinis-fieldtype="image"name="image"style="float:left"/>
<corinis-fieldtype="richedit"name="text"/>
</corinis-repeatable>
</body>
</html> 

 You could already put some styles or whatever you want into it. As you can see the template is xhtml, with a few extra tags.

Minute 4 - Change the template of the root document and edit your content
main_4_repeat2_1_image

Now you need to assign the template to the root document (/). Just doubleclick on the line with ".." and edit the properties (menu) so your template is assigned (see picture).

You can then edit your content (Document/Edit), save it and send it life (Document/QM and Document/Life). You now have the new content with your own template in the cms (look at the jsp page you created)

Minute 5 - Navigation

You can now add a navigation by putting following code in the jsp (right after the <corinis:cms/>):

<corinis:cmsfunction="getFileManagerComplete"xsl="inline">
<xsl:stylesheetxmlns:xsl="http://www.w3.org/1999/XSL/Transform"version="1.0">
<xsl:template match="ENTRY">
<p>
<a>
<xsl:attributename="href">?Document_id=<xsl:value-ofselect="ID"/></xsl:attribute>
<xsl:value-ofselect="NAME"/>
</a>
</p>
<xsl:apply-templates select="ENTRY"/>
</xsl:template>
<xsl:templatematch="/">
<xsl:apply-templatesselect="/CMSFILEMANAGER/ENTRY/ENTRY" />
</xsl:template>
</xsl:stylesheet>
</corinis:cms>

Now look at what happened and change the code, with fancier styles and more. Or you can read more in the howto section.