VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: edk on September 28, 2018, 08:59:16 AM

Title: Tool tip layout
Post by: edk on September 28, 2018, 08:59:16 AM
I hope I'm posting this in the right place. I have tool tips on custom fields, but the content is also showing style attributes. (see attached)

I'm running Joomla 3.8.12 and Virtuemart 3.4.0.
Title: Re: Tool tip layout
Post by: jenkinhill on September 28, 2018, 10:20:00 AM
With current VM versions you can't use html tags in tooltips.  eg see in http://demo.virtuemart.net/
Title: Re: Tool tip layout
Post by: edk on September 28, 2018, 10:50:33 AM
Thanks Kelvyn, but I only entered plain text.
Title: Re: Tool tip layout
Post by: Ghost on September 28, 2018, 10:56:03 AM
True. VM uses Joomla's method to generate tooltip but doesn't load tooltip JS. If your template uses Bootstrap, create a layout override where tooltip is displayed and add this:

JHtml::_('bootstrap.tooltip');
Title: Re: Tool tip layout
Post by: edk on September 28, 2018, 16:23:23 PM
Tried doing this, no joy  :(
Title: Re: Tool tip layout
Post by: jjk on September 28, 2018, 22:36:48 PM
Looks identical to this: https://forum.virtuemart.net/index.php?topic=129850.0, but I don't know any better explanation of how to do that. Never tried it myself.
Perhaps try this: https://www.regularlabs.com/extensions/tooltips
Title: Re: Tool tip layout
Post by: edk on September 29, 2018, 03:23:59 AM
Thanks everyone.

Added
JHtml::_('bootstrap.tooltip');
directly to the customfields.php
file and solved the problem.