Intro image in newsflash module?
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
-
- Joomla! Apprentice
- Posts: 12
- Joined: Fri May 04, 2012 2:41 pm
- Location: Florida USA
Intro image in newsflash module?
Is there any way to have the newsflash show an article's intro image? I have tried the options in the module menu but it doesn't help.
Last edited by toivo on Wed Apr 11, 2018 2:28 pm, edited 1 time in total.
Reason: mod note: locked topic as requested
Reason: mod note: locked topic as requested
-
- Joomla! Enthusiast
- Posts: 125
- Joined: Fri May 25, 2012 4:27 pm
Re: Intro image in newsflash module?
I do not what module you are using, but I use this module it will show the intro text, and the first image.
http://www.joomshaper.com/category/15-free-slider-sp1
Queen
http://www.joomshaper.com/category/15-free-slider-sp1
Queen
- vineetkhurana
- Joomla! Apprentice
- Posts: 24
- Joined: Sat Feb 06, 2010 10:15 pm
- Location: Chandigarh, India
- Contact:
Re: Intro image in newsflash module?
There are many extensions that can do this for you. Just have a look:-
http://extensions.joomla.org/extensions ... s-showcase
http://extensions.joomla.org/extensions ... s-showcase
-
- Joomla! Apprentice
- Posts: 12
- Joined: Fri May 04, 2012 2:41 pm
- Location: Florida USA
Re: Intro image in newsflash module?
Yeah guys, these sliders work great for my last question regarding pagebreaks but this does not solve my issue regarding having an intro image for a news article in a news module. By the way I am using Joomla! 2.5
[Mod Note: Bump post by you deleted. Please do not bump your messages. Read the Forum Rules for full details.
[Mod Note: Bump post by you deleted. Please do not bump your messages. Read the Forum Rules for full details.
-
- Joomla! Enthusiast
- Posts: 125
- Joined: Fri May 25, 2012 4:27 pm
Re: Intro image in newsflash module?
Sorry, I guess I do not understand what you need.
Why does it say this topic was bumped?
[Mod Note: Because it had been!]
Queen
Why does it say this topic was bumped?
[Mod Note: Because it had been!]
Queen
-
- Joomla! Apprentice
- Posts: 12
- Joined: Fri May 04, 2012 2:41 pm
- Location: Florida USA
Re: Intro image in newsflash module?
On a homepage of a site I am building. I have static info on the top (pictures), and I added a newsflash module below the static info where I can put news articles. It works to great just showing the article's headline and the readmore stuff but I am looking to also have the intro image of each article show on these news articles contained in the newsflash module.
-
- Joomla! Enthusiast
- Posts: 125
- Joined: Fri May 25, 2012 4:27 pm
Re: Intro image in newsflash module?
Here, look at this ww.newshotwire.com, that news slider is not what you want?
Queen
Queen
-
- Joomla! Apprentice
- Posts: 12
- Joined: Fri May 04, 2012 2:41 pm
- Location: Florida USA
Re: Intro image in newsflash module?
No, I do not want a slider. I just want to have the intro images of each article show next to each article in the newsflash module.
-
- Joomla! Enthusiast
- Posts: 125
- Joined: Fri May 25, 2012 4:27 pm
Re: Intro image in newsflash module?
Ah, I see. Sorry I misunderstood you.
Queen
Queen
-
- Joomla! Enthusiast
- Posts: 125
- Joined: Fri May 25, 2012 4:27 pm
- MoonfireArt
- Joomla! Explorer
- Posts: 466
- Joined: Wed Feb 29, 2012 3:27 pm
Re: Intro image in newsflash module?
You do not need an extension. I did a layout override of this module, and the articles category and Latest News modules to overcome this exact problem.
Just insert a couple of lines of code into the appropriate view of the newsflash module (to decode the JSON object), copy that file into your template's HTML folder, and you're done. You can check out the results via this forum thread (in the site showcase) http://forum.joomla.org/viewtopic.php?f ... 7#p2818997
For any who are interested, the code block is as follows:
There's some good documentation at Joomla docs on layout overrides if you are not familiar. Do not hack the core, as your mod will be overwritten on upgrade.
Just insert a couple of lines of code into the appropriate view of the newsflash module (to decode the JSON object), copy that file into your template's HTML folder, and you're done. You can check out the results via this forum thread (in the site showcase) http://forum.joomla.org/viewtopic.php?f ... 7#p2818997
For any who are interested, the code block is as follows:
Code: Select all
<?php //json decodes the image object and gets the intro image source. ?>
<img src="<?php echo json_decode($item->images)->image_intro; ?>" />
The burned hand teaches best... - The Two Towers
http://webdesign.moonfireartstudios.com Joomla web design for small businesses
http://webdesign.moonfireartstudios.com Joomla web design for small businesses
-
- Joomla! Apprentice
- Posts: 12
- Joined: Fri May 04, 2012 2:41 pm
- Location: Florida USA
Re: Intro image in newsflash module?
Thanks Moonfire, I need to learn exactly how to add this. I am not yet too great with layout overrides. I will read more about it today. Hopefully I can figure it out.
- Webdongle
- Joomla! Master
- Posts: 44070
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Intro image in newsflash module?
It's a Template override not a Layout override
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
- RustyJoomla
- Joomla! Explorer
- Posts: 409
- Joined: Wed Aug 01, 2007 12:08 am
- Location: UK
- Contact:
Re: Intro image in newsflash module?
I'm slightly confused as to why this still needs an override fix, when the option to show images is in the module but an override is needed to actually show the image? Why hasn't this been submitted for a change request to Joomla core code?
- Per Yngve Berg
- Joomla! Master
- Posts: 30887
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Intro image in newsflash module?
Joomla 2.5 went EOL on December 2014. There will be no more changes.
You should move on to Joomla 3.x.
You should move on to Joomla 3.x.
- RustyJoomla
- Joomla! Explorer
- Posts: 409
- Joined: Wed Aug 01, 2007 12:08 am
- Location: UK
- Contact:
Re: Intro image in newsflash module?
I'm not running 2.5! My point was this module still needs the override to show the image even in 3.8.6
- Per Yngve Berg
- Joomla! Master
- Posts: 30887
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Intro image in newsflash module?
You have to create a new topic in the 3.x forum and for it to be looked at by the devs, create a ticket in the Bug Tracker.
- RustyJoomla
- Joomla! Explorer
- Posts: 409
- Joined: Wed Aug 01, 2007 12:08 am
- Location: UK
- Contact:
Re: Intro image in newsflash module?
Yes, thanks I know that.