Access Keys:
Skip to content (Access Key - 0)
Home (Access Key - 1)
All spaces... (Access Key - 3)
Log in (Access Key - 5)
Sign up (Access Key - 6)
Development

Mambo Manual is part of the documentation project for the Mambo open source content management system

Toggle Sidebar

Label: templates

Content with label templates in Development (See content from all spaces)
Related Labels: developer

File and Function Reference
following functions are available to template developers. mosLoadComponents Syntax: mosLoadComponents( $name ) Loads a component. For example "banners". Do not include the "com" prefix. mosCountModules Syntax: mosCountModules( $positionname ) Counts the number of modules that may be shown on the current page in the "positionname" position ...
Other labels: developer
The Control Panel
Control Panel for the Administrator is a separate file, cpanel.php, that is included with the template. It is a separate file to allow for customisation of this area as different sites and users are likely to have different needs for this valuable piece of screen real estate. The Control Panel file does not need ...
Other labels: developer
Administrator Templates
time the model for Administrator Templates is still being formed. It is intended that both the Site and Administrator templating systems will merge into a common API in a future version. However, some notes are provided here for reference. Module Support You may include modules ...
Other labels: developer
Hiding Modules
Sometimes it is desirable to hide certain module areas if there are no modules assigned to that region. You can hide these areas by using the mosCountModules function. <?php if (mosCountModules( 'right' )) ?> or: <?php if (mosCountModules( 'right' )) ?> If the mosCountModules function returns a value greater than 1, the table ...
Other labels: developer
Template Thumbnail
When you have finished your template, publish it with the Template Manager in the Administrator backend. Preview the site and take a screenshot. Import the screen shot into your favourite graphic editing package and crop it down to the contents of the browser's view port. Reduce ...
Other labels: developer
The XML File
Each template contains a metadata file in XML format. This file is called templateDetails.xml The templateDetails.xml must include all the files that are part of the template. It also includes information such as the author, version number, creation date and copyright. Some of these are shown in the administrator backend ...
Other labels: developer
Style Sheets
style sheet is the CSS of the template (css/templatecss.css). The folder location is optional, but you have to specify where it is. Note that the file name is only important in that its referenced in index.php. You may choose to offer alternative CSS files for your template ...
Other labels: developer
Layout File
While the template layout file is a PHP file, it is written mostly in HTML with only a few snippets of PHP. You do not have to be a master of PHP to write a template file. All you need to be able to do is learn where to place the key ...
Other labels: developer
Templating Overview
Mambo Template system is amongst the easiest to learn in the Content Management System family. Templates are located in the /templates directory. The following shows a typical directory structure for a template:/templates /basictemplate /css templatecss.css /images index.php templatethumbnail.png templateDetails.xml This is the minimum set ...
Other labels: developer
Templating for Mambo Developers
Basic Templating Templating Overview Layout File Style Sheets The XML File Template Thumbnail Advanced Templating Hiding Modules Administrator Templates File and Function Reference
Other labels: developer
Toggle Sidebar
Space Navigation

Adaptavist Theme Builder Powered by Atlassian Confluence
Free theme builder license