Mambo Templates

 

Mambo is a content management system. It allows more than other cmses the merging the interactive database driven elements with an existing static design. By way the hooks to the web solution backend, which are in php can easily be inserted in a template. The template can be upload via (s)ftp or code copy and pasted in to form in admin. One may want to start with an existing template and modify or examine for tips. These elements can be positioned relative to each other with tables or much better css layout. Please make page XHTML compliant.

There are tutorials on the Mambo Portal website.

Mambo interactive php code hooks
Element Name to insert Code (to be add between <?php and ?>

Embeded code (note: as mambo is not installed for this page these will not work here)

Title echo $mosConfig_sitename;
CSS Stylesheet echo "<link rel=\"stylesheet\" href=\"templates/$cur_template/css/template_css.css\" type=\"text/css\">" ; " ; ?>
Banner mosLoadComponent( "banners" );
Date echo (strftime (_DATE_FORMAT_LC));
Main Body include ("mainbody.php");
Pathway include "pathway.php";
Left Modules mosLoadModules ( 'left' );
Right Modules mosLoadModules ( 'right' );
Search <form action="index.php" method="post">
<div align="right">
<input class="inputbox" type="text" name="searchword" size="15" value="<?php echo _SEARCH_BOX; ?>" onblur="if(this.value=='') this.value='<?php echo _SEARCH_BOX; ?>';" onfocus="if(this.value=='<?php echo _SEARCH_BOX; ?>') this.value='';" />
<input type="hidden" name="option" value="search" />
</div>
</form>
Head Code <?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>"; ?>
<?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );?>
<?php echo _ISO; ?>
<?php include ("includes/metadata.php"); ?>
<?php include_once ("editor/editor.php"); ?>
<script language="JavaScript" type="text/javascript"><!--function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();} MM_reloadPage(true);//--></script>
<?php initEditor(); ?>
"; ?>
User 1 mosLoadModules ( 'user1' );
User 2 mosLoadModules ( 'user2' );
User 3 mosLoadModules ( 'user3' );
Top mosLoadModules ( 'top' );
Bottom mosLoadModules ( 'bottom' );
Insert mosLoadModules ( 'inset' );
Footer include_once('includes/footer.php');
     
     

Screenshot of a mambo Template being opened in Dreamweaver with Mambo extension giving buttons that insert the above hooks.

web site building guide

home