Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • AndreasStenhall Friend
    #117432

    I want to place an information box above the newsposts on the Frontpage. I have managed to do this the hardcoded way in the ja_zibal/index.php file but then the box displays on all pages, I only want it to be visible on the front page. How can I accomplish this?

    If you look at the overview of where everything is placed (http://www.joomlart.com/templates_club/club_portfolio/ja_zibal.html), I want to out the box above the “B” section.

    Thanks!

    // Andreas

    amitjindal Friend
    #211125

    I have the same need. Can someone please help? I have send a note to JoomlArt support also but no reply.

    Hung Dinh Friend
    #211129

    Please find the following codes in index.php file:


    <div id="ja-mainbody">
    <?php mosMainBody(); ?>

    and replace with:


    <div id="ja-mainbody">
    <?php mosMainBody(); ?>

    <?php if ( mosCountModules('user5') ) { ?>

    <?php mosLoadModules ( 'user5', -2 ); ?>
    <?php } ?>

    And then set your information box content to user5 modules.
    The support at joomlart.com is almost out of use at the moment because of heavily spammed. If you have any question, please let me know at webmaster joomlart.com

    amitjindal Friend
    #211132

    Thanks. I have already tried this.

    With clean JA_Zibal template installation…

    Here’s what I did:
    1. Added above to index.php for the template.
    2. Create a new module and assign that to user5. Also in the module I added the text to be shown in the Custom Output text box.
    3. Unpublish all other things from front page manager.

    This shows fine on the home page. The problem with this approach is that now this content is visible on all pages. Maybe I am missing something.

    Please help.

    amitjindal Friend
    #211133

    Never mind. I figured out.

    When creating (or updating) the new module, selecting the Page/Links to MainMenu/Home does the trick.

    Thanks!!

    amitjindal Friend
    #211135

    When I unpublish all front page items I get this message on home page:
    “There are no items to display”

    Here’s a solution I found that works for me.

    Replaced:

    mosMainBody();

    With this:


    <!-- AJ_BEGIN -->
    <?php
    if ( mosCountModules('user5') ) {
    mosLoadModules ( 'user5', -2 );
    } else {
    mosMainBody();
    }
    ?>
    <!-- AJ_END -->

    Hope this helps,
    AJ

    AndreasStenhall Friend
    #211166

    Thanks for helping me out! I created a module and published it only on the front page. Easy when you know how to do it! 🙂

    gregory3 Friend
    #211421

    I did this but my module appeared under the news and had the module image in the middle of the module header. How woul I make this appear at the top of the news?

    amitjindal Friend
    #211433

    Most likely you might have misplaced the code above or you may have some modules published in main body. Can you please post the changes you made and possibly a link to your website or a picture with error.

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

This topic contains 9 replies, has 4 voices, and was last updated by  amitjindal 18 years ago.

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