HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Add image title to gallery's tooltip

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#85816 (In Topic #17602)
Avatar

Honoured member

Hey everybody,

back again after long time of absence.

Is it possible to realise the following thing in some way (when a image title is set):



With my old adjusted v7 I could make this simply by adding "<h2>{_TITLE*}</h2>" to the GALLERY_IMAGE.tpl. I reckon it's a little bit more complex to do that. But I don't understand the mechanism. How can I pass the new parameter to the template?

Best regards
Falko

ANDROMEDA - Das junge Beobachterforum :)
Back to the top
 
Posted
Rating:
#85895
Avatar

Honoured member

Well, seems to be a little bit more complex, as I got no answer so far. That's why I purchased some credit points to get commercial support (Budget priority) for it. If you don't need I will for sure use them later  :)

Best regards
Falko

ANDROMEDA - Das junge Beobachterforum :)
Back to the top
 
Posted
Rating:
#85898
Avatar

ocStaff (admin)

Hi,

I was going to take a look at this for free, but I am knee deep in v9 changes at the moment so I suspect I'll be replying tomorrow. It sounds like a bug to me.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#85941
Avatar

Honoured member

OK, thanks for reply.

Best regards
Falko

ANDROMEDA - Das junge Beobachterforum :)
Back to the top
 
Posted
Rating:
#86008
Avatar

ocStaff (admin)

Yes, this is an oversight in the merging of the patch we original made for you & others.

Fixes attached…

Attachment
sources/blocks/main_gallery_embed.php
» Download: main_gallery_embed.php (12 Kb, 26 downloads so far)
Attachment
site/pages/modules/galleries.php
» Download: galleries.php (78 Kb, 28 downloads so far)
Attachment
themes/default/templates/GALLERY_IMAGE.tpl
» Download: GALLERY_IMAGE.tpl (1.66 Kb, 18 downloads so far)
Attachment
themes/default/templates/GALLERY_VIDEO.tpl
» Download: GALLERY_VIDEO.tpl (1.74 Kb, 17 downloads so far)



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#86028
Avatar

Honoured member

Great! Thank you very much :)

Chris Graham said


Attachment
themes/default/templates/GALLERY_IMAGE.tpl
» Download: GALLERY_IMAGE.tpl (1.66 Kb, 18 downloads so far)

But I would suggest to use h2 instead of h3 for the title:





Btw: How can I use the codebox tag?

This looks really ugly:

Code

&amp;lt;br /&amp;gt; &amp;amp;lt;h2 class=&amp;amp;quot;gallery_tooltip_description&amp;amp;quot;&amp;amp;gt;&amp;lt;br /&amp;gt; &amp;amp;nbsp;&amp;amp;nbsp; {$TRUNCATE_LEFT,{TITLE},100,0,0}&amp;lt;br /&amp;gt; &amp;amp;lt;/h2&amp;amp;gt;&amp;lt;br /&amp;gt;


Is this how it should looks like?

Best regards
Falko

ANDROMEDA - Das junge Beobachterforum :)
Back to the top
 
Posted
Rating:
#86044
Avatar

ocStaff (admin)

I used h3 because the template may be used under a block, which is likely to use h2 itself.

In the next generation of standards it doesn't matter if heading levels are skipped, but it does if they aren't hierarchical so that's my main concern nowadays.

I have just fixed the codebox issue. That's been plaguing us for ages, I only just worked out how to reproduce it.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: