-
AuthorPosts
-
May 6, 2008 at 7:55 am #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 FriendMenalto
- Join date:
- May 2007
- Posts:
- 4736
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 2
- Thanked:
- 531 times in 361 posts
May 6, 2008 at 1:09 pm #247943i 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
# Linksbut 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 -->
May 6, 2008 at 10:08 pm #248006I 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.
May 8, 2008 at 12:43 am #248124Help!! 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??
May 8, 2008 at 1:48 am #248130Nevermind. got it to work. Thanks!
May 11, 2008 at 5:10 pm #248659I 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 advancecanadatom Friendcanadatom
- Join date:
- February 2008
- Posts:
- 80
- Downloads:
- 1
- Uploads:
- 5
- Thanks:
- 12
- Thanked:
- 5 times in 1 posts
May 28, 2008 at 7:12 pm #250925How did you get it worked? Please help I got same problem.
May 28, 2008 at 9:09 pm #250945sorry 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.
June 1, 2008 at 4:39 pm #251465In 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
-
AuthorPosts
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