You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#116739 Simple Text popup

Posted in ‘Mediabox’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by servett on Friday, 21 June 2024 17:11 BST

servett

Hello!

I cant find info in Tutorials here ( https://www.joomlacontenteditor.net/support/tutorials/jcemediabox ) and via search.

How to make a simple text popup in article with JCE MediaBox ??

Just a simple text, when user point a mouse on it - the text will appear on a same page with a small popup. How to do this ??

Example in attachment.

Thank You!

Attachments

servett

Help, please??

Ryan

Just a simple text, when user point a mouse on it - the text will appear on a same page with a small popup. How to do this ??

Mediabox does not create tooltips, which is essentially what you are describing. Joomla used to have a tooltip script, but I don't know if this is still available in Joomla 4 or Joomla 5.

Which template are you using? The template might have the code necessary to produce a tooltip.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

servett

I am using Joomla 3.10.

Does it have tooltip script that I can use with Jce editor or media box ??

Template is my own, but I can add code from standard templates if necessary.

 

Thank you!

Ryan

Yes Joomla 3.10 does. As an example, you can add the following php code in your template's index.php file:

JHtml::_('behavior.tooltip');

Then to create a tooltip, add code like this on the target:

<span class="hasTip" title="This is a tooltip">target text</span>

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

servett

Thank you!

Is there any button in jce editor to insert this without html coding?

Or can I create some sort of plugin?

Because it also need to managers who doesn't know HTML ((

Ryan

If you are creating the tooltip as part of a link, then you can add the class and title while you are creating the link, in the Advnaced tab of the Link dialog.

Although the "hasTip" class will not be included in the Classes list, you can type it in and press Enter.

Alternatively, if your are creating the tooltip on a text selection, you can use the Attributes dialog (toolbar button has a "cog" icon) to add the Title and Class to the text selection, which will create a <span> tag as in my example above.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

servett

Great, thank you very much!!

Have a nice weekend!!