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?
Adding Image Caption Breakes Image Float
Moderator: ooffick
Forum rules
Please use the official Bug Tracker to report a bug: https://issues.joomla.org
Please use the official Bug Tracker to report a bug: https://issues.joomla.org
- systeman
- Joomla! Enthusiast
- Posts: 176
- Joined: Sat Jun 10, 2006 7:15 am
- Location: London
- Contact:
- systeman
- Joomla! Enthusiast
- Posts: 176
- Joined: Sat Jun 10, 2006 7:15 am
- Location: London
- Contact:
Re: Adding Image Caption Breakes Image Float
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.
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.
- Crozet1063
- Joomla! Apprentice
- Posts: 14
- Joined: Tue Oct 18, 2005 3:53 pm
- Location: Charlottesville, VA
- Contact:
Re: Adding Image Caption Breakes Image Float
I have experienced the same bug.
-
- Joomla! Apprentice
- Posts: 10
- Joined: Tue Mar 10, 2009 5:22 am
Re: Adding Image Caption Breakes Image Float
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?
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?
-
- Joomla! Apprentice
- Posts: 10
- Joined: Tue Mar 10, 2009 5:22 am
Re: Adding Image Caption Breakes Image Float
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.
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.
- sandvelder
- Joomla! Apprentice
- Posts: 46
- Joined: Thu Sep 08, 2011 10:03 am
- Location: Pretoria, South Africa
- Contact:
Re: Adding Image Caption Breakes Image Float
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!
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
https://sandvelder.com
Pretoria
-
- Joomla! Apprentice
- Posts: 29
- Joined: Fri Nov 18, 2005 2:12 pm
- Location: UK
Re: Adding Image Caption Breakes Image Float
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
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