-
AuthorPosts
-
March 17, 2008 at 8:51 pm #126678
I want to put a module in the body position and get rid of all the article in there. I added a Body module position in the configuration, but that didn’t seem to work. Can anyone tell me how to do this?
Thanks,
RyanNam Nguyen Phi Friend
Nam Nguyen Phi
- Join date:
- September 2014
- Posts:
- 248
- Downloads:
- 3
- Uploads:
- 35
- Thanks:
- 20
- Thanked:
- 57 times in 29 posts
March 18, 2008 at 2:22 am #242432Hi,
1. to rid of all article out of your body page, please remove<?php mosMainBody(); ?>out of file /templates/ja_barite/index.php
2. to add any module in body position, please add this code<?php mosLoadModules("your module name"); ?>replace
<?php mosMainBody(); ?>Goodluck!
Regards.Menalto Friend
Menalto
- Join date:
- May 2007
- Posts:
- 4736
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 2
- Thanked:
- 531 times in 361 posts
March 18, 2008 at 5:58 am #242443IF you replace with the above code you will remove mainbody totally, but if you change this:
<?php mosMainBody(); ?>
Into this:
<?php
global $mainframe, $option;
$m_menu = $mainframe->get( "menu" );
$m_params = new mosParameters( $m_menu->params );$m_intro = $m_params->def( "intro", 4 );
$m_leading = $m_params->def( "leading", 1 );
if ( $option != "com_frontpage" || $m_intro || $m_leading) {
?>
<?php mosMainBody(); ?>
<?php } ?>
You still have the mainbody when you gonna show full articles, contact us etc.
Then you can adjust the layout on the Menu>Home button to set intro,column etc to 0 as you do on the JA-Teline.March 21, 2008 at 4:30 pm #242794Thanks for the help.
Ok, so I changed the code in the jabarate template index.php file. Then I went into the home button in the admin and changed leading, intro, columns, and link # to 0. Then I created a body module position and then put the mod fireboard latest posts in the body module position, but nothing seems to be showing up. Am I doing something wrong?
Thanks,
Ryan
Nam Nguyen Phi Friend
Nam Nguyen Phi
- Join date:
- September 2014
- Posts:
- 248
- Downloads:
- 3
- Uploads:
- 35
- Thanks:
- 20
- Thanked:
- 57 times in 29 posts
March 22, 2008 at 8:44 am #242857Example:
If you have Lastest Module in User 1 position, you need to set that module at body of you page
pls replace<?php mosMainBody(); ?>by
<?php mosLoadModules("User1"); ?>Regards.
-
AuthorPosts
This topic contains 5 replies, has 3 voices, and was last updated by Nam Nguyen Phi 16 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum