Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • astyles Friend
    #128250

    Hi can someone tell me how I can move ja-news to be above the main body content? Everytime I post an article on the front page the janews module is below the content body.
    Here is my code:

    <blockquote><!– BEGIN: CONTENT –>
    <div id=”ja-content”>
    <div class=”ja-innerpad clearfix”>

    <jdoc:include type=”message” />

    <?php if(!$tmpTools->isFrontPage()) : ?>
    <div id=”ja-breadcrumb”>
    <jdoc:include type=”module” name=”breadcrumbs” />
    </div>
    <?php endif ; ?>

    <div id=”ja-current-content”>

    <?php
    $params = &$mainframe->getParams();
    // parameters
    $intro = $params->def(‘num_intro_articles’, 4);
    $leading = $params->def(‘num_leading_articles’, 1);
    if (!$tmpTools->isFrontPage() || $intro || $leading) {
    ?>
    <jdoc:include type=”component” />

    <?php
    }
    if ( $tmpTools->isFrontPage() && $this->countModules(“ja-news”) ) { ?>
    <div id=”ja-newswrap”>
    <jdoc:include type=”modules” name=”ja-news” style=”raw” />
    </div>
    <?php } ?>

    </div>

    <?php if($this->countModules(‘banner’)) : ?>
    <!– BEGIN: BANNER –>
    <div id=”ja-banner”>
    <jdoc:include type=”modules” name=”banner” />
    </div>
    <!– END: BANNER –>
    <?php endif; ?>

    </div>
    </div>

    <!– END: CONTENT –></blockquote>

    I tried moving the janews above body content but keep getting errors. Pls help!!

    Menalto Friend
    #247943

    i guess you didnt set up the main menu as it should be, since ja-news is there to replace the mainbody at frontpage.
    Go to Menus-Main Menu-Home, on the right side there you get some parameters you can set to 0, such as # Leading
    # Intro
    Columns
    # Links

    but you can try with this:

    <!-- BEGIN: CONTENT -->
    <div id="ja-content">
    <div class="ja-innerpad clearfix">

    <jdoc:include type="message" />

    <?php if(!$tmpTools->isFrontPage()) : ?>
    <div id="ja-breadcrumb">
    <jdoc:include type="module" name="breadcrumbs" />
    </div>
    <?php endif ; ?>

    <div id="ja-current-content">

    <?php
    }
    if ( $tmpTools->isFrontPage() && $this->countModules("ja-news") ) { ?>
    <div id="ja-newswrap">
    <jdoc:include type="modules" name="ja-news" style="raw" />
    </div>
    <?php } ?>

    <?php
    $params = &$mainframe->getParams();
    // parameters
    $intro = $params->def('num_intro_articles', 4);
    $leading = $params->def('num_leading_articles', 1);
    if (!$tmpTools->isFrontPage() || $intro || $leading) {
    ?>
    <jdoc:include type="component" />

    </div>

    <?php if($this->countModules('banner')) : ?>
    <!-- BEGIN: BANNER -->
    <div id="ja-banner">
    <jdoc:include type="modules" name="banner" />
    </div>
    <!-- END: BANNER -->
    <?php endif; ?>

    </div>
    </div>

    <!-- END: CONTENT -->

    astyles Friend
    #248006

    I tried the first suggestion but setting all the fields to 0 just removed the article that I wanted on the frontpage. The second suggestion I had previously tried and gave me a parsing error .. Parse error: parse error, unexpected ‘}’ on line 160

    this is referring to the 2nd line of your code below:

    <?php
    }
    if ( $tmpTools->isFrontPage() && $this->countModules(“ja-news”) ) { ?>
    <div id=”ja-newswrap”>
    <jdoc:include type=”modules” name=”ja-news” style=”raw” />
    </div>
    <?php } ?>

    I was able to place content in a custom module to trick it to be on the frontpage, but I was hoping to be able to post through articles instead of a module. haha Anyway, hanks again for all your help on this.

    astyles Friend
    #248124

    Help!! i tried changing the code so many times i lost count. I’m trying to post regular articles on the front page but it’s showing up before the ja-news module. I need it to show after ja-news module. Any help would be greatly appreciated. Anyone??

    astyles Friend
    #248130

    Nevermind. got it to work. Thanks!

    flightparties Friend
    #248659

    I have the same problem, anyone knows how to fix it ? I really need to have JA_news in the first position but I canĀ“t make it using main menu setup
    Thanks in advance

    canadatom Friend
    #250925

    How did you get it worked? Please help I got same problem.

    astyles Friend
    #250945

    sorry about the late reply.. i couldn’t get it to work correctly, but what i did do was add another module position right above ja-news position and use that module instead.

    davidrabone Friend
    #251465

    In ADMIN menu SITE—>TEMPLATE MANAGER–>MODULE POSITIONS you will see a list of module positions. Check you have one named ja-news. If you dont already have it just create it by naming an empty one and clicking save.

    Adding to the points above about main menu.
    Go to your menu manager – main menu – HOME.

    My parameters are as follow;

    Menu image; Do not use

    page title; Hide

    Back button; hide

    Leading; 0

    Intro; 0

    Columns; 1

    Links; 0

    PDF icons etc are hidden

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

This topic contains 9 replies, has 5 voices, and was last updated by  davidrabone 16 years, 5 months ago.

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