Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about Hot Newsflash free Joomla module.

Topic-icon Module appearing on articles?

More
6 years 10 months ago #1087 by vintage-threads
Hello!

So, I installed the extension Hot News Flash, and managed to make it appear above my content with the ja_purity template on the front page after a bit of googling, by adding the code
<jdoc:include type="modules" name="newscustom" />
to the index page just before
<jdoc:include type="component" />
on the index page and making it a position + assigning hot news flash to that position.

I fiddled around a bit with the module assignment and found out that if it it assigned to only 'Home' then it would appear on the articles :S I have no idea how to fix this.

How would I get it to appear only on the front page, and not before every article? I'm using it as a sort of welcome message/other things, so it wouldn't make much sense for it to be on other pages.

I'm just starting my website, and all of my articles are published on front page, as I want it to be sort of like a blog, if that means anything.
If anyone at all could help me out, It would be greatly appreciated

Please Log in to join the conversation.

More
6 years 10 months ago #1088 by milos
This is issue with Joomla. Home page has Itemid=1, but also all articles linked from the home page. If you like something to show only on home page and nowhere but home page, you should add this code:
<?php if (@$_REQUEST['view'] == 'frontpage') {
<jdoc:include type="modules" name="newscustom" /> 
} ?>
above <jdoc:include type="component" />

Please Log in to join the conversation.

More
6 years 10 months ago - 6 years 10 months ago #1089 by vintage-threads
Ah, I tried, but it came up with
Parse error: syntax error, unexpected '<' in templates/ja_purity/index.php on line 193

I pasted the code right above <jdoc:include type="component" /> in replacement of <jdoc:include type="modules" name="newscustom" />

Have I done something wrong?
:dry:
Last Edit: 6 years 10 months ago by vintage-threads.

Please Log in to join the conversation.

More
6 years 10 months ago #1090 by milos
Sory, my bad, try this:
<?php if (@$_REQUEST['view'] == 'frontpage') { ?>
<jdoc:include type="modules" name="newscustom" /> 
<?php } ?>

Please Log in to join the conversation.

More
6 years 10 months ago #1091 by vintage-threads
Wait! It's okay, I've figured it out :)
The code was supposed to be

<?php if($_REQUEST=="frontpage") : ?>
<jdoc:include type="modules" name="newscustom" />
<?php endif ; ?>

:)
Thanks so much for that! You have no idea how crazy I've been going over this.

Please Log in to join the conversation.

More
6 years 10 months ago #1092 by vintage-threads
Haha, I think we posted at the same time.
Thank you thank you thank you! :)

Please Log in to join the conversation.

Time to create page: 0.124 seconds

Links, Partners and Social Media