Postings

You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).

Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!

Tooltip at image

More
IP: 81.83.197.111 8 years 2 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
  • syw
  • syw's Avatar
  • Administrator
  • Administrator
More
IP: 24.185.113.161 8 years 2 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.
More
IP: 81.83.197.111 8 years 2 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.
  • syw
  • syw's Avatar
  • Administrator
  • Administrator
More
IP: 24.185.113.161 8 years 2 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.
More
IP: 188.93.86.36 8 years 2 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.
  • syw
  • syw's Avatar
  • Administrator
  • Administrator
More
IP: 24.185.113.161 8 years 2 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.