This tree allows the creation and managment of one or more websites for different languages and areas.
There are four areas:
- Domains, where to add new domains and manage website files
- Blocks, where to create and order modules (head, body, divs, etc.)
- Areas, where to set main website areas.
- Contents, where to manage contents.
Once you have created a domain you have to set the html blocks that compose each page. A block can be nested inside another block, so for instance the first block will be html, the second will be head (with html as parent) and third body (with html as parent). Then maybe a main page div (body's nested) and some other nested divs of page div, who is part of body who is part of html.
Once you have defined all the blocks that compose a page, you should order them with the right power so that they will be printed out in a sequential power order.
When you are ready with domain name and blocks schema, you can add the main areas and begin to fill the contents.
The logic behind the content module is that the system will output the first matching content for the supplied variables, which are:
- n or name for the name of the content.
- a or area for the name of the area.
- l or language for the language of the content.
So for instance if your url is:
- http://www.tibula.net/? the first matching content with no area and no name and no language (or default) will be output.
- http://www.tibula.net/?n=overview will output content with matching name or no name, no area and no language. In case of a content of same type with no name the one with matching name will be output.
- http://www.tibula.net?n=overview&a=documentation&l=en only content matching no name or overview, no area or documentation, and no language or en (english) will be output, prefering matching ones in place of no name.
This module defines the web domain names.
The name must in the same form you want to reach your website, without preceding protocol, i.e. www.tibula.net (not http://www.tibula.net).
You can add some free note text to the edit mask of the domain and you can manage all the media files trought the Files link.
The first domain of each tibula uses a /media/ default directory, so if you want to relative reference a file you should use this relative url: /media/fileName.Xtn
This module defines the html blocks, you can set the sequential power ordered position of the block on the page and the opening and closing tags for the content.
The content will be printed between the open and close tag.
You can search it for name, parent or domain.
The edit mask is so made:
- name, the name of the module who should be unique for the domain. This field is mandatory.
- parent, here you can define if this is a nested module and which module it is nested.
- power, the top-down order in which this module will be printed on the html output. To avoid confusion the order is the general order not the nested one, take care about it.
- domain, the domain this module is owned by, this is mandatory.
- open tag, the html opening tags, the content will be printed inside the open and close tags.
- close tag, the html closing tags.
An area is group of pages about the same argument, for instance www.tibula.net has a documentation area with all the pages related to the documentation, a shopping area, an intranet area...
An area must be related to a web domain.
Once domain, blocks and areas are defined here you can manage the contents.
You can search for name, domain, area, block and language.
The edit mask is so made:
- domain, the domain this content is owned by, mandatory.
- area, the area this content is owned by. If empty this content will be used whenever an area is not supplied.
- block, this is mandatory and defines which block this content is owned by, so which will be the surrounding open and close tags, and the position of this content inside the web page.
- language, define which language is this content valid for. If not set the content will be available for any language.
- name, this set the name of the content, if not filled this content will be valid whenever a name is not supplied.
- content, this is where the real content has to be write. On last generation browser this field will be a wysiwyg html editor; you can click on the last html editor button to make the field full screen (same to go back).