- Posts: 61
COMMUNITY FORUM
Captions
- trogladyte
-
Topic Author
- Offline
- Senior Member
Less
More
9 years 2 weeks ago - 9 years 2 weeks ago #152999
by trogladyte
Captions was created by trogladyte
Under "Choose Image" in the image tab of create/edit, there's a field for entering a caption. Self-explanatory really, except for 3 things.
1. The image is centered but the caption is left justified - silly! At worst it needs to line up with the left edge of the image or, much more sensibly, be centered as well. Is there a setting for its justification I couldn't find?
2. Although I can make the caption appear on the "details" layout, on the Readmore it doesn't. How do I get it to display there as well? This is really important to this client.
3. While adding or editing an article from the frontend, there is no "Display Settings tab where the ability to Use Global | Show | Hide captions toggles are. Where do I globally set "Show Captions"? I looked through Parameters but cannot find it.
Thanks!
1. The image is centered but the caption is left justified - silly! At worst it needs to line up with the left edge of the image or, much more sensibly, be centered as well. Is there a setting for its justification I couldn't find?
2. Although I can make the caption appear on the "details" layout, on the Readmore it doesn't. How do I get it to display there as well? This is really important to this client.
3. While adding or editing an article from the frontend, there is no "Display Settings tab where the ability to Use Global | Show | Hide captions toggles are. Where do I globally set "Show Captions"? I looked through Parameters but cannot find it.
Thanks!
Last edit: 9 years 2 weeks ago by trogladyte.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 2 weeks ago #153054
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Captions
Hello,
1) This is a simple CSS rule, depending on the template you are using, you can increase/ decrease or use float to the image's block.
2) The code you need to use in the category_item.php file is this:Remember to use overrides instead of editing core files.
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
3) The settings are set through the backend.
1) This is a simple CSS rule, depending on the template you are using, you can increase/ decrease or use float to the image's block.
2) The code you need to use in the category_item.php file is this:
<span class="itemImageCaption"><?php if(!empty($this->item->image_caption)) echo $this->item->image_caption; ?></span>
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
3) The settings are set through the backend.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- trogladyte
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 61
9 years 2 weeks ago #153079
by trogladyte
Replied by trogladyte on topic Captions
Thanks Krikor. I'll have a look at the template and if I can figure out why it's doing it. I still find it surprising that the image is centered but the corresponding caption is not.
#3 - is there a global switch/setting to set captions on, or is it per article or category. If there's no ability to set captions on the frontend, I'm hoping there's a global one. If so, exactly where is it?
Thanks.
#3 - is there a global switch/setting to set captions on, or is it per article or category. If there's no ability to set captions on the frontend, I'm hoping there's a global one. If so, exactly where is it?
Thanks.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 2 weeks ago #153089
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Captions
The caption by default is not present in the category item's view.
You need to hardcode it in your template.
You need to hardcode it in your template.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.