How to create a template for Jumla

How to create a template for Jumla

Digital Hits: 68
The content management system of the website "Jumla" gives the chance how to select style of design from base of ready templates, and to create own style and to apply it to your website. What is a template and what it consists of The template of Jumla represents set of files with the code, images and icons which by default is located in folder/templates. Information on a marking of your template should be written in the index.php file. It is HTML the code in which areas in which any given information will be displayed are designated. Information on it registers in this file in the form of PHP functions (an example of functions — navigation, the body text, heading, etc.). Important division from the point of view of the organization of a template in Jumla is the distinction of the main and additional contents. The first is responsible for display of so-called components, and the second — for display of modules. Components of Jumla are some kind of expansion which contents are displayed, as a rule, in the center of the page of the website. This information kernel. Besides, the built-in components of the Jumla system are banners. Modules of Jumla allow to expand functionality of a template. They consist of the executive code and the file with settings. For installation of the created components and settings use "The manager of templates" of Jumla. Click "Find" – the system will recognize the settings which are stored in folder/templates. Select the template and click "Install". Other important file of settings of a template of Jumla is template_css.css. Apparently from the name, by means of this file directly external design of your website is defined. The code is written in the CSS language therefore you can use all opportunities of this language: set the size, color and type of fonts, arrangement of the text on the page, etc. In addition to these main files with the code and settings the template includes the graphic user files necessary for design, the separate file with settings of a template defining appearance offline - pages. Features which the beginner should consider Often not all marked areas of your template at initial use will contain any information or the module. It can be caused by the different reasons including an error in the code. For correction of it add to the file of settings of your template check on area contents. Now the appearance of the page will dynamically change, depending on existence of contents. The same concerns also display of modules — if in them for any reason there is no contents, then it is necessary to turn off code generation of these modules.

Author: «MirrorInfo» Dream Team

Print