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

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


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

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. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
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

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, 112 downloads so far)
Attachment
site/pages/modules/galleries.php
» Download: galleries.php (78 Kb, 128 downloads so far)
Attachment
themes/default/templates/GALLERY_IMAGE.tpl
» Download: GALLERY_IMAGE.tpl (1.66 Kb, 108 downloads so far)
Attachment
themes/default/templates/GALLERY_VIDEO.tpl
» Download: GALLERY_VIDEO.tpl (1.74 Kb, 125 downloads so far)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
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, 108 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

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


Is this how it should looks like?

Best regards
Falko

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

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. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: