-
AuthorPosts
-
October 20, 2006 at 8:04 am #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
October 21, 2006 at 1:26 am #211125I have the same need. Can someone please help? I have send a note to JoomlArt support also but no reply.
Hung Dinh FriendHung Dinh
- Join date:
- September 2014
- Posts:
- 4408
- Downloads:
- 11
- Uploads:
- 189
- Thanks:
- 309
- Thanked:
- 3310 times in 3 posts
October 21, 2006 at 2:10 am #211129Please 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.comOctober 21, 2006 at 3:22 am #211132Thanks. 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.
October 21, 2006 at 3:29 am #211133Never mind. I figured out.
When creating (or updating) the new module, selecting the Page/Links to MainMenu/Home does the trick.
Thanks!!
October 21, 2006 at 3:57 am #211135When 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,
AJOctober 23, 2006 at 4:23 pm #211166Thanks for helping me out! I created a module and published it only on the front page. Easy when you know how to do it! 🙂
November 3, 2006 at 4:32 pm #211421I 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?
November 4, 2006 at 5:38 am #211433Most 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.
-
AuthorPosts
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