Captions in Joomla articles

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Apr 25, 2014 3:50 pm
Reply with quote
Report this post
Image Captions don't show in my Quickstart install. Is there a way to make them visible please?
User avatar
Senior Boarder

GK User
Fri Apr 25, 2014 5:05 pm
Reply with quote
Report this post
Hi,
can I please for more details?
1) Are we talk about K2 items or default articles?
2) You are adding captions where ?
User avatar
Platinum Boarder

GK User
Fri Apr 25, 2014 5:15 pm
Reply with quote
Report this post
Hi Pawel F
Thanks for your reply.

I'm talking about standard Joomla articles.
I'm talking about captions added to the main image via the Joomla 3 "images & Links" facility.

http://dev.counterfire.org/game/index.php/opinion/17178-marquez-a-master-of-the-minutiae-and-the-magnitude-of-existence
User avatar
Senior Boarder

GK User
Fri Apr 25, 2014 6:01 pm
Reply with quote
Report this post
ok, if you want to add captions you have to make a small customization:
1) Open in edit mode this file: templates/gk_game/html/com_content/article/default.php
2) Find line ~188 there you will find
Code: Select all
src="<?php echo $images->image_fulltext; ?>" alt="<?php echo $images->image_fulltext_alt; ?>"/>

before closing </div> please add following code:
Code: Select all
<p class="img_caption"> <?php echo htmlspecialchars($images->image_fulltext_caption) ?></p>

3) Save changes or upload changed file

Details: http://www.gavick.com/documentation/gen ... -articles/
User avatar
Platinum Boarder

GK User
Fri Apr 25, 2014 6:07 pm
Reply with quote
Report this post
I saw that you have problem with social icons - not all are in this same middle line.
This should fix it;
Code: Select all
#gkSocialAPI > iframe, #gkSocialAPI > #___plusone_0, #gkSocialAPI > a  {    top: 5px;}
User avatar
Platinum Boarder

GK User
Sat Apr 26, 2014 1:43 pm
Reply with quote
Report this post
Thanks Pawel F - the captions are now showing on articles where they've been added via the J3 'images & links' tab in the article editor.

I have another captions related question related to legacy content.

I've transferred >5,000 articles from a J 1.5 site, none of the captions display on these, and the usual formatting for images is not applied. - there are no margins or captions on them. Images are formatted with
Code: Select all
class="caption"


I can turn captions back on for these legacy articles by adding
Code: Select all
JHtml::_('behavior.caption');
at line 52 of components/content/controller.php, and adding the necessary styles to the CSS , however doing that messes up the formatting on any images added via the newer J3 "images & Links" facility.

Is there a way to activate the formatting and captions on legacy content with images formatted with class="caption" ?
User avatar
Senior Boarder

GK User
Sat Apr 26, 2014 1:48 pm
Reply with quote
Report this post
Pawel F wrote:I saw that you have problem with social icons - not all are in this same middle line.
This should fix it;
Code: Select all
#gkSocialAPI > iframe, #gkSocialAPI > #___plusone_0, #gkSocialAPI > a  {    top: 5px;}



Thanks Pawel F - where do I add this code?
User avatar
Senior Boarder

GK User
Sat Apr 26, 2014 6:56 pm
Reply with quote
Report this post
where do I add this code?

Check my footer links :mrgreen: have fun & have a nice day
Image
User avatar
Platinum Boarder

GK User
Sat Apr 26, 2014 7:01 pm
Reply with quote
Report this post
Is there a way to activate the formatting and captions on legacy content with images formatted with class="caption" ?

You have to ask php developer - probably you need extra migration tool.
User avatar
Platinum Boarder

GK User
Sat Apr 26, 2014 8:00 pm
Reply with quote
Report this post
Pawel F wrote:
Is there a way to activate the formatting and captions on legacy content with images formatted with class="caption" ?

You have to ask php developer - probably you need extra migration tool.


So, to clarify, your templates will not work with content that has been created for earlier versions of Joomla?
User avatar
Senior Boarder

GK User
Sat Apr 26, 2014 8:11 pm
Reply with quote
Report this post
Pawel F wrote:
where do I add this code?

Check my footer links :mrgreen: have fun & have a nice day
Image


I've tried using the template override, that doesn't work.
It would really be much more helful if you'd just tell me where the code needs to go...
User avatar
Senior Boarder

GK User
Sat Apr 26, 2014 8:27 pm
Reply with quote
Report this post
But captions you have in right place,
also social icons are now in the middle, so all works fine.

About migration, sorry but we do not deal with this topic. You should ask for example team who created jUpgrade Pro or SP Upgrade - they are experts in such a problems. Nobody ever said that migration is easy.
User avatar
Platinum Boarder

GK User
Sat Apr 26, 2014 10:10 pm
Reply with quote
Report this post
Thanks Pawel.
For the benefit of anybody else who has this issue, there's a plug-in called EasyImageCaption that can re-apply legacy captions that disappear after moving to J3 :
EasyImageCaption:
http://joomla.roemer-online.org/

its solved the issue for my 5000 migrated articles. :D
User avatar
Senior Boarder

GK User
Sun Apr 27, 2014 12:32 am
Reply with quote
Report this post
Thanks for info, it's always good to know.
I have added into our manual: http://www.gavick.com/documentation/gen ... -articles/
User avatar
Platinum Boarder


cron