Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

How To Correctly Show Html As Part Of Tooltips Content Rate Topic   - - - - -

 
  • arnas00
  • Newbie
  • Members
  • Join Date: 25-Jun 19
  • 9 posts

Posted 30 August 2019 - 09:17 PM #1

Hello dear folks.

Is it possible that my tooltips content include HTML tags and get them rendered correctly?

I'm reffering both to admin area form fields "magic" "automatic" tooltips taken from that specially named language variables, and to those hand made tooltips using the cm-tooltip microformat that grabs its content from the title HTML attribute.

Thank you.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19574 posts

Posted 02 September 2019 - 06:04 AM #2

try to use as title the following code

{__("my_language_variable")|escape:"javascript"}

or

{"my <br/><b>text</b>"|escape:"javascript"}

(!) Not tested


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.