Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • ryanzroost Friend
    #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,
    Ryan

    Nam Nguyen Phi Friend
    #242432

    Hi,
    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
    #242443

    IF 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.

    ryanzroost Friend
    #242794

    Thanks 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
    #242857

    Example:
    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.

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 3 voices, and was last updated by  Nam Nguyen Phi 16 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum