Intro image in newsflash module?

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

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.
Locked
gsjoomlaer
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri May 04, 2012 2:41 pm
Location: Florida USA

Intro image in newsflash module?

Post by gsjoomlaer » Wed May 30, 2012 2:24 am

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

QueenofHearts
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Fri May 25, 2012 4:27 pm

Re: Intro image in newsflash module?

Post by QueenofHearts » Sat Jun 02, 2012 10:32 pm

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

User avatar
vineetkhurana
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Sat Feb 06, 2010 10:15 pm
Location: Chandigarh, India
Contact:

Re: Intro image in newsflash module?

Post by vineetkhurana » Sun Jun 03, 2012 9:32 am

There are many extensions that can do this for you. Just have a look:-

http://extensions.joomla.org/extensions ... s-showcase
Regards,
Vineet Khurana
http://www.viprasoft.com

gsjoomlaer
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri May 04, 2012 2:41 pm
Location: Florida USA

Re: Intro image in newsflash module?

Post by gsjoomlaer » Sun Jun 03, 2012 4:26 pm

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.

QueenofHearts
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Fri May 25, 2012 4:27 pm

Re: Intro image in newsflash module?

Post by QueenofHearts » Sun Jun 03, 2012 4:53 pm

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

gsjoomlaer
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri May 04, 2012 2:41 pm
Location: Florida USA

Re: Intro image in newsflash module?

Post by gsjoomlaer » Sun Jun 03, 2012 11:43 pm

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.

QueenofHearts
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Fri May 25, 2012 4:27 pm

Re: Intro image in newsflash module?

Post by QueenofHearts » Sun Jun 03, 2012 11:52 pm

Here, look at this ww.newshotwire.com, that news slider is not what you want?

Queen

gsjoomlaer
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri May 04, 2012 2:41 pm
Location: Florida USA

Re: Intro image in newsflash module?

Post by gsjoomlaer » Sun Jun 03, 2012 11:56 pm

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.

QueenofHearts
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Fri May 25, 2012 4:27 pm

Re: Intro image in newsflash module?

Post by QueenofHearts » Mon Jun 04, 2012 12:00 am

Ah, I see. Sorry I misunderstood you.

Queen

QueenofHearts
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Fri May 25, 2012 4:27 pm

Re: Intro image in newsflash module?

Post by QueenofHearts » Mon Jun 04, 2012 1:03 am

What about this module, http://www.joomshaper.com/joomla/free-e ... ighlighter will it work?


Queen

User avatar
MoonfireArt
Joomla! Explorer
Joomla! Explorer
Posts: 466
Joined: Wed Feb 29, 2012 3:27 pm

Re: Intro image in newsflash module?

Post by MoonfireArt » Mon Jun 04, 2012 1:29 am

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:

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; ?>" /> 
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.
The burned hand teaches best... - The Two Towers

http://webdesign.moonfireartstudios.com Joomla web design for small businesses

gsjoomlaer
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri May 04, 2012 2:41 pm
Location: Florida USA

Re: Intro image in newsflash module?

Post by gsjoomlaer » Mon Jun 04, 2012 10:42 am

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.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44070
Joined: Sat Apr 05, 2008 9:58 pm

Re: Intro image in newsflash module?

Post by Webdongle » Mon Jun 12, 2017 1:56 pm

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".

User avatar
RustyJoomla
Joomla! Explorer
Joomla! Explorer
Posts: 409
Joined: Wed Aug 01, 2007 12:08 am
Location: UK
Contact:

Re: Intro image in newsflash module?

Post by RustyJoomla » Tue Apr 10, 2018 8:09 pm

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?
Follow me on Twitter - http://twitter.com/RustyJoomla
Company Joomla Website - https://storm.agency

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30887
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Intro image in newsflash module?

Post by Per Yngve Berg » Wed Apr 11, 2018 6:31 am

Joomla 2.5 went EOL on December 2014. There will be no more changes.

You should move on to Joomla 3.x.

User avatar
RustyJoomla
Joomla! Explorer
Joomla! Explorer
Posts: 409
Joined: Wed Aug 01, 2007 12:08 am
Location: UK
Contact:

Re: Intro image in newsflash module?

Post by RustyJoomla » Wed Apr 11, 2018 7:01 am

I'm not running 2.5! My point was this module still needs the override to show the image even in 3.8.6
Follow me on Twitter - http://twitter.com/RustyJoomla
Company Joomla Website - https://storm.agency

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30887
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Intro image in newsflash module?

Post by Per Yngve Berg » Wed Apr 11, 2018 7:31 am

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.

User avatar
RustyJoomla
Joomla! Explorer
Joomla! Explorer
Posts: 409
Joined: Wed Aug 01, 2007 12:08 am
Location: UK
Contact:

Re: Intro image in newsflash module?

Post by RustyJoomla » Wed Apr 11, 2018 7:35 am

Yes, thanks I know that.
Follow me on Twitter - http://twitter.com/RustyJoomla
Company Joomla Website - https://storm.agency


Locked

Return to “General Questions/New to Joomla! 2.5”