Tooltips v3 -> v4 syntax replacement

Search
Other Pre-Sale questions
Forum

Tooltips v3 -> v4 syntax replacement

Sergey's Avatar Sergey
Hello,
Glad to see that tooltips4 finally exists. But I couldn't find the solution for how to change the old syntax which is:
{tip Title::Content}Text{/tip} or {tip ::Content}Text{/tip}
on this:
{tip title="Title" content="Content"}Text{/tip} or {tip content="Content"}Text{/tip}
I really hope that there is a solution for this, otherwise I need to look for a rope with a soap... )
Peter van Westen's Avatar Peter van Westen ADMIN
As described here:
docs4.regularlabs.com/tabsaccordions/get...m-joomla3-to-joomla4

You can use DB Replacer Pro to make advanced replacements like this.
regularlabs.com/dbreplacer
For your case you will need Regular Expressions which are only available in the Pro version of DB Replacer.

You can for instance search for (with Regular Expressions on):
\{tip Title\:\:([^\}]*)\}
Replace with:
{tip title="\1"}
Please post a rating at the Joomla! Extensions Directory
Sergey's Avatar Sergey
Ok, so the solution exists, that's good. I'll buy it when I get a new template.
P.S. you don't accept cryptocurrency, do you? 🙂
Peter van Westen's Avatar Peter van Westen ADMIN
No, I don't
Please post a rating at the Joomla! Extensions Directory
Sergey's Avatar Sergey
Another concern:
What about text with quotes and rich text, e.g.,
{tip BlablaTitle::I have this huge text with lots of "quotes"<br>
<strong>bold text</strong>}tooltip{/tip}
Everything can be fixed via your DBreplacer, including quotes? Because you put everything in quotes...
Peter van Westen's Avatar Peter van Westen ADMIN
You'd have to do some smart Regular Expressions to handle those cases, where it adds slashes to escape them: \"
Probably easiest to do that before replacing it all to the new syntax.
Please post a rating at the Joomla! Extensions Directory
Sergey's Avatar Sergey
I do hope you will help me then...
Peter van Westen's Avatar Peter van Westen ADMIN
I can help with stuff on the Pro version.
Please post a rating at the Joomla! Extensions Directory
Sergey's Avatar Sergey
I'll be back 🙂
You can only post on this forum if you log in