Quick Start Template Manual
This document describes how to get started with imCMS once you have installed the system onto your server.
Before you can start to create templates, set up properties and permissions, create new documents etc. you have to setup the imCMS server and get it running. This process Is not described in this document. We simply assume you have done that and that you have a working system on your server.
Step 1 – create at least one template
What is needed in your first template?
Your template is built in HTML as any static HTML page. This means that you must use normal HTML-tags like:
<HTML>All design/appearnce is defined by your HTML code. The content is added with imCMS-tags. E.g.
<TITLE><?IMCMS:TEXT no="1" MODE="READ"?> .- www.acme.com </TITLE>will create an output of:
"The content in textfield 1 – www acmi.com"in your browsers TITLE bar,
The main components of your webpage are built with:
<? imcms:text no="1"?>
The text tag creates an automatic connection to the database where all text are stored. Just enter the text tag into your layout, wherever you wish to have a possibility to enter and show text.
<? imcms:image no="1"?>
The image tag creates an automatic connection to the database where all imagereferences are stored. Just enter the image tag into your layout, wherever you wish to have a possibility to enter and show images.
The menu tag creates an automatic connection to the database where all menus and the corresponding links to "child documents" are stored. Just enter the menu tag into your layout, wherever you wish to have a possibility to enter and show links to child documents.
# adminMode ## changePage #
Do not forget to use these tags in your template!
# adminMode # will automatically show the admin-panel on the page
# changePage # will show the panel when the "Appearance" button is pressed in the admin panel.
Once you have created a template with the main sections you will be able to:
Once you have created a template and used that template on a page, you need to setup the privileges for that page.
Use the admin panel and press "Permissions"
The role "users" is given to all users in the system, also the users that did not log in. This means that if you give the role "users" the right to read the page – any user that visits the webpage can read it.
As you are by default superadmin, you can edit every aspect of the page, without any need to set up further privileges.
If you would like an other user to be able to edit the whole, or parts of the page, you need to set up roles and privileges for that user:
Step 3 – create another template…
Now you may create as many templates as you wish, define what pages use them and enter all information you wish into the pages.
Your simple system is completed
These steps will complete a simple system that you can use to enter as much information as you wish into the system.
If you wish to use more advanced features, you need to fully understand the power of imCMS. Here are som examples.
Via the include tag you can create server side includes of many types:<?velocity?>
Use the Velocity tag to include intelligens into your template. All Velocitty code is preparsed before the imCMS tags are parsed.
mode="read"; mode = "write"
Text, image and menu tags can be defined as mode "read" or "write".
"Read" means that the content of the tag is only shown in "nomal" mode, that is none of the admin buttons have been pressed.
"Write" means that the content of the tag is only shown in "admin" mode, that is one of th of the admin buttons have been pressed.
<?imcms:menu no="2" template="templatename"?>
The parameter "templatename" is used as defaulttemplate to all shown documents in the menu.
You can output the content of any menu on any page as RSS-feed. Simply use the syntax described in the imCMS on-line manual.