Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

file Tooltip at image

More
6 years 3 months ago #5043 by Jfranck
Tooltip at image was created by Jfranck
It is posible to remove all the tooltips except the one at the image. Is that posible too?

Kind regards Joeri

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago #5044 by syw
Replied by syw on topic Tooltip at image
Hello Joeri,

what tooltips are you talking about (I mean: on which elements)?
All tooltips on contact info can be turned off (you have the option for each field in the contact information tab).

Olivier.

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago #5046 by Jfranck
Replied by Jfranck on topic Tooltip at image
I mean the tooltip at the image. Tooltips are also available on other fields but they can all be disabled in the 'contactinformation'-tab.
Attachments:

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago #5048 by syw
Replied by syw on topic Tooltip at image
Sorry, I did not understand correctly :-) I thought you wanted to only keep the one tooltip over the image and remove the others.

When the card links to a contact, the picture links to it also. Since it is a link, the title attribute is added to the <a> tag.

Right now, only a template override can change this.

In the override, look for
<div class="personpicture">

A few lines below, replace
<a<?php echo $extra_attributes; ?> href="<?php echo $link; ?>" title="<?php echo $formatted_name; ?>" >
with
<a<?php echo $extra_attributes; ?> href="<?php echo $link; ?>" >

Olivier.

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago #5049 by Jfranck
Replied by Jfranck on topic Tooltip at image
I found the line in site/components/com_trombinoscopeextended/views/trombinoscope/tmpl/default.php
and in site/components/com_trombinoscopeextended/views/trombinoscope/tmpl/list.php
but that doesn't work did i use the wrong file?

Kind regards.

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago #5050 by syw
Replied by syw on topic Tooltip at image
It all depends if you need to make the changes in the directory views or in the module (or both).

In any case, you should not modify any extension file. You need to create template overrides:

- determine if you need to override the directory views or the module,
- go to your default template,
- create overrides of the directory views and/or the module,
- make changes in the files created through the override process.

It turns out the changes I have told you to make are not the only necessary ones.
You also need to remove all attributes in the JHTML::_('image', ...) calls like so:

<?php echo JHTML::_('image', $item->image, $formatted_name, array('class' => 'hasTooltip', 'title' => $formatted_name)); ?>

becomes:

<?php echo JHTML::_('image', $item->image, $formatted_name, array()); ?>

If you are not in a hurry, I will soon be releasing an update to the extension and I will address this 'annoyance'.

Olivier.

Please Log in or Create an account to join the conversation.