Elxis CMS Forum
Support => General => Topic started by: ROUBOS on June 22, 2010, 00:22:49
-
Hi,
Just installed Elxis 2009.2 and working on a template.
OK
Following is the code for the main body. OK so working on the css I would like to customize the way content is displayed.
Please clear out for me the difference between mosMainBody and Frontpage.
There is no MainBody module. Looking at the Elxis Book, I've changed div.blogleading, but where do we control what shows up and how in the MainBody?
Want to be able to change the way content items are displayed. From two rows, to one etc.
<body>
<!-- Begin Wrapper -->
<div id="wrapper">
<!-- Begin Header -->
<div id="header">
</div>
<!-- End Header -->
<!-- Begin Navigation -->
<div id="navigation" class="top-navigation">
<?php mosLoadModules('top', -2); ?>
</div>
<!-- End Navigation -->
<!-- Begin Left Column -->
<div id="leftcolumn">
<?php mosMainBody(); ?>
</div>
<!-- End Left Column -->
<!-- Begin Right Column -->
<div id="rightcolumn">
Right Column
</div>
<!-- End Right Column -->
<!-- Begin Footer -->
<div id="footer">
This is the Footer
</div>
<!-- End Footer -->
</div>
<!-- End Wrapper -->
</body>
-
<?php mosMainBody(); ?> is not a module !!!! but is the principal command of elxis to display the contents of your elxis site and it must be put always in the center or main column of your page (not in the left or right column used usually for menus or other elxis modules).
no mosMainBody() in your template, no content displayed ;D
how frontpage (not module) you must consider the content items you want display in the home page. is always mosMainBody() that display the contents you want display in the content item
download some templates and look how they are made. you can learn many things ;)
-
OK, I know the mainBody is the main area for displaying content.
Can we change the way the content is displayed?
I mean blog.leading is for the first item
Now hoe about the rest, how do we change the way items are displayed? Currently 2 columns.
How about one column and each item taking up the entire div width?
In the module frontpage you can edit the number of columns.
In the mainBody though?
-
the column setting are in the every menu. for the front page confgure the home menu ;)
menu --> mainmenu -->home
the module frontpage is another thing. >:(
-
cool thanks
-
whats the css class for content items displayed?
-
In the module frontpage you can edit the number of columns.
In the mainBody though?
they are in the parameters of the link pointing to the page .. the frontpage the blog_catrgory_page the blog_section_page ... what ever page is and contains content items
always look at the link -parameters pointing to this page!
do not confuse html-layout(cols) with css classes