Elxis CMS Forum

Support => General => Topic started by: ROUBOS on June 22, 2010, 00:22:49

Title: Please help me clear this out (mainbody/frontpage) [SOLVED]
Post 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.

Code: [Select]
<body>

   <!-- Begin Wrapper -->
   <div id="wrapper">
   
         <!-- Begin Header -->
         <div id="header">

   
</div>
<!-- End Header -->

<!-- Begin Navigation -->
<div id="navigation" class="top-navigation">
<?php mosLoadModules(&#39;top&#39;, -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>
Title: Re: Please help me clear this out (mainbody/frontpage)
Post by: speck on June 22, 2010, 00:52:11
<?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  ;)
Title: Re: Please help me clear this out (mainbody/frontpage)
Post by: ROUBOS on June 22, 2010, 00:57:31
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?
Title: Re: Please help me clear this out (mainbody/frontpage)
Post by: speck on June 22, 2010, 01:02:47
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.  >:(
Title: Re: Please help me clear this out (mainbody/frontpage)
Post by: ROUBOS on June 22, 2010, 01:03:47
cool thanks
Title: Re: Please help me clear this out (mainbody/frontpage) [SOLVED]
Post by: ROUBOS on June 22, 2010, 01:41:04
whats the css class for content items displayed?
Title: Re: Please help me clear this out (mainbody/frontpage) [SOLVED]
Post by: ks-net on June 22, 2010, 02:19:41
Quote
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