Adding Image Caption Breakes Image Float

Did you find a bug in Joomla! 3.x but aren't sure? This forum is the place to help figure out if the problem is a bug and how to report it. If you are an experienced Joomla! user and are certain that you have found a bug please use the Bug Tracker to submit your issue.
This forum is for discussion about bugs and to get help with reporting them to the Bug Tracker: https://issues.joomla.org

Moderator: ooffick

Forum rules
Please use the official Bug Tracker to report a bug: https://issues.joomla.org
Locked
User avatar
systeman
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 176
Joined: Sat Jun 10, 2006 7:15 am
Location: London
Contact:

Adding Image Caption Breakes Image Float

Post by systeman » Thu Mar 27, 2014 5:03 pm

There is a image caption bug in J3.2.2 and 3.2.3

In the article default settings one can set up default image float options.

For example:
Intro image can be set to Left, or Right
Also a Image Caption can be added.

Full article image can be set to Left, or Right
Also a Image Caption can be added.

All the above can be overridden in actual article options.

The bug

Without a caption for the full article image the image will float on the website front end as selected.

With a caption the image will float in the centre of the article.

I have confirmed this using the default Joomla templates also.

Article URL showing centrally aligned image which should be on the right:
Default template
http://www.contractflooringmagazine.com ... nt-lacquer

and using protostar:
http://www.contractflooringmagazine.com ... =protostar

Setup:
Joomla 3.2.3
Template Mondrian Pro by Joomlashack

What is the fix for this?

User avatar
systeman
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 176
Joined: Sat Jun 10, 2006 7:15 am
Location: London
Contact:

Re: Adding Image Caption Breakes Image Float

Post by systeman » Sat Mar 29, 2014 10:00 am

Bump.

This has to be one of the most important bugs that need an urgent fix - looks like other's have noticed it as well.

For the time being I'm not going to use Joomla options for inserting images. Instead, my work around is to insert the image via editor and hard code the image inside div tags and add the caption and float classes directly, this works.

User avatar
Crozet1063
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Tue Oct 18, 2005 3:53 pm
Location: Charlottesville, VA
Contact:

Re: Adding Image Caption Breakes Image Float

Post by Crozet1063 » Sat Apr 26, 2014 1:34 pm

I have experienced the same bug.
Jim Bain
Website Builder
http://FlyingDogMedia.com

londoh
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Mar 10, 2009 5:22 am

Re: Adding Image Caption Breakes Image Float

Post by londoh » Tue May 06, 2014 10:05 am

yes I'm also seeing this with new install of J3.3

It doesnt work because of the way the caption element is created by jcaption.js
Code in jcaption.js looks for the float instruction in the actual image element.
Whereas com_content (and at least joomlart purityIII template override) add the float to a containing div.
So jcaption.js cant find intended float and it defaults to 'none'

It seems to me it can never do whats expected.

I never used this stuff before - did it ever work?
jcaption.js says since 1.5 which is a long time for something to be so completely wrong!

I tried to search for/report it as a bug to Official Bug Tracker as per suggestion above but its a very non-easy process and I gave up.
perhaps someone else knows how the bug tracker works? or if its already listed?

londoh
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Mar 10, 2009 5:22 am

Re: Adding Image Caption Breakes Image Float

Post by londoh » Tue May 06, 2014 12:37 pm

here's a modified caption.js
this modified file lets article image captions and floats set via article editor do what I expect in my current project, here and now.
ie: captions will display and article image float is set as per admin setting.

its only tested in my local dev install, untested anywhere else in the known universe

but maybe its helpful to someone

Overall looking at this raises the question: if we are setting a css class in the template to mark the caption, then loading js to set the caption - why not just set the caption in the template? (note to self: doh, maybe there's a bigger picture)

regards

l.
You do not have the required permissions to view the files attached to this post.

User avatar
sandvelder
Joomla! Apprentice
Joomla! Apprentice
Posts: 46
Joined: Thu Sep 08, 2011 10:03 am
Location: Pretoria, South Africa
Contact:

Re: Adding Image Caption Breakes Image Float

Post by sandvelder » Wed Oct 15, 2014 12:17 pm

Hi
I am already on J3.3.6, and the bug is still there. I am not so familiar with CSS and js, and my J3 websites are now working fine. Will an update later sort this out? It's very annoying!
Francois Barnard
https://sandvelder.com
Pretoria

Limeyard
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Fri Nov 18, 2005 2:12 pm
Location: UK

Re: Adding Image Caption Breakes Image Float

Post by Limeyard » Sat Mar 07, 2015 4:23 pm

Hi All,

Has there been anything new on this? I am on 3.3.x and I still can't get image captions to work.

Regards,
Limeyard


Locked

Return to “Joomla! 3.x Bug Reporting”