
GENU is a Content Management System written with PHP language and using a database server (MySQL, PostgreSQL or SQLite). It is fully customisable since it use a templates system and support multiple languages.
GENU is an open-source software distributed under the terms of the GNU GPL license.
Features:
Requirements:
- to write -
The languages files are located in the languages/ directory. These files consist of an array containing predefined variables and their replacement strings. Each language file contains the same predefined variables, only strings are translated. Example:
If you are interested in creating and maintaining one translation file, please contact me at raoul at genu dot org. Thanks in advance.
A simple template class allows to keep HTML code in external files (.htpl) which are completely free of PHP code. These files are located in the templates/ directory and its subdirectories. They contain predefined variables (see the list in templates/variables.txt file) substituted when the code is interpreted. These variables can be various types: a portion of HTML code, a string, a number...
Actually, the template class has the following features: substitution of variables and blocks (recursive or not). Below, the documentation about the class (inspired from the PHPLib):
Then, the templates variables or blocks can be used in templates files.
Yes. Simply edit templates files (.htpl) and the style sheet (.css) located in the templates/ directory. By default, GENU use XHTML and CSS2 languages but you can use HTML language if you want.
You can also create your own layout using the predefined template variables.
Yes. Simply edit templates files: usually header.htpl or footer.htpl but it depends on if you are using templates provided with GENU or your own layout. In the last case, you should know better than me how to add menu blocks. Below, an example of code to add a menu block to the default template:
Yes. Below, an example of code to generate an about page. The file 'about.php' is placed in the WHERE_GENU_IS_INSTALLED/pages/ directory of your webserver:
And an example of the template file 'about.htpl', placed in the WHERE_GENU_IS_INSTALLED/templates/default/pages/ directory, if you are using the default template: