Elxis CMS Forum
Support => Technical support => Topic started by: ROUBOS on October 17, 2009, 03:22:22
-
Hi, currently installed Elxis 2009.0 on my Debian Lenny box.
I'm a noob and trying to create a website.
I have managed to create a template and it installed properly and working.
I'm going by the books I bought: "ΠΩΣ ΝΑ ΦΤΙΑΞΕΤΕ TEMPLATE ΓΙΑ ΤΟ Elxis CMS" and "ΚΑΤΑΣΚΕΥΗ WEB SITES ΜΕ ΤΟ Elxis CMS"
Now I'm asking here because my index is different to the pre-installed templates. I notice some IF statements and also different ways of loading modules (using 'user1' and 'user2') that don't make any sense to me at the moment.
here is my index.php:
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$iso = explode( '=', _ISO );
echo '<?xml version="1.0" encoding="'.$iso[1].'"?' .'>'._LEND;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo _LANGUAGE; ?>" xml:lang="<?php echo _LANGUAGE; ?>"<?php echo (_GEM_RTL) ? ' dir="rtl"' : ''; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<link href="<?php echo $mosConfig_live_site; ?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css<?php echo (_GEM_RTL) ? '-rtl' : ''; ?>.css" rel="stylesheet" type="text/css" media="all" />
<?php if ( $my->id ) { initEditor(); } ?>
</head>
<body>
<div id="container">
<div id="langbar"><?php mosLoadModules('language', -1); ?></div>
<div id="topbar">header banner goes here...</div>
<div id="navbar"><?php mosLoadModules ('top',-1);?></div>
<div id="main">
<div id="column_left"><?php mosMainBody(); ?></div>
<div id="column_right"><?php mosLoadModules('left'); ?></div>
<div class="spacer"></div>
</div>
<div id="footer">© 2009 Giavasis Design - Kalymnos</div>
</div>
</body>
</html>
any feedback would be greatly appreciates.
thanks in advance...
-
nothing strange as far as i can see...
modules always loading the same way
the if statements are for loading the divs.. if there are modules published then print the divs that will contain the modules.. you don't need you don't add.. no matter
one note..
from elxis 2008(if i am not wrong) we are using :
<?php elxLoadModule('mod_language', -1); ?> instead of <?php mosLoadModules('language', -1); ?>
more about this here... http://wiki.elxis.org/wiki/Load_module_by_name
and more about tpls development here.. http://wiki.elxis.org/wiki/Category:Templates_Developer_Guide there are some new features
and here... http://wiki.elxis.org/wiki/Category:Expand_Template_Functionality
-
thanks for the reply.
I just did it the way it said in the book I bought. (and it is the 2008 version)
Ok so i use elxLoadModule instead of mosLoadModules, but what about mosMainBody ? will look it up
I still need more to learn to understand the <div> loading with the if statements and user1/user2 etc...
thanks
-
Why would it be another site on my server compromising my site when I have in the logs someone trying to post to /administrator/components/com_contact/admin.contacts.php?? Isnt that the community builder extension? Why would they be doing that other than trying to inject something. Which has stopped since I banned the ip..
Im not sure I have the .htaccess file installed correctly, does it go in the very root of the site or public_html folder? I cant get it to show up even though it says it uploaded correctly
-
mosLoadModules used when you loading modules in template position
elxLoadModule used when you loading single module instead of position
i didn't see logo in your template ))