| BrianX Magazine >
Reinventing the wheel :)
File structure:
When building your template file, make sure to place the css, javascript, and image files into the appropriate forders. A brief explanation of the folders is as follows:
| /templates/ |
Folder where the HTML template files are stored |
| /css/ |
Folder containing the CSS files |
| /images/ |
Folder containing template images (images for use in the content portion are kept elsewhere) |
| /scripts/ |
Folder containing javascript files (files ending in .js) |
CMS Includes:
The CMS comes with reserved include statements built into it with the option to create additional custom includes. A list of reserved include statements are listed below:
| &content& |
Insert this where you want the content of a given page or section to appear |
| &title& |
Title tag (example: <title>&title&</title>) |
| &metaDesc& |
Meta description (example: <meta name="description" content="&metaDesc&">) |
| &metaKeyword& |
Meta keywords (example: <meta name="keywords" content="&metaKeyword&">) |
| &breadcrumb& |
Bread crumb links(example: <div class="breadcrumb">&breadcrumb&</div>) |
| &pageTitle& |
Page title as defined by "NAME EN" when creating or editing pages and sections |
The following list applies to article templates
| &footer& |
Custom footer defined by "EXTRA FOOTER" when creating or editing pages |
Custom Includes:
Like the built-in include statements, the CMS will recognize custom include statements and replace them in your HTML file with the appropriate content. Custom includes can be controlled from the administrator menu under the "Custom Functions" portion of the control panel. Be very careful before you touch this section because it is extremely powerful and if not properly used could comprimise the entire site.
The following is a list of custom functions built specifically for your site:
| &menu& |
Used to display the main menu for the site. Right now it's the menu on the left hand side but we can adjust it to suit whatever design you have in mind |
| &gallery& |
Used to display the photo gallery of a given page if one exists |
| &related& |
Used to display related articles |
|