Search
Other Tabs & Accordions questions
Forum

Migrating J.3 sliders to J.5 accordions using DB Replacer – issue with title

Joris Lange's Avatar Joris Lange
Hi Peter,

We are busy migrating a customer’s site from J.3 to J.5. On J.3 we used RL Sliders which now needs to be migrated to Tabs & Accordions, in over a 100 articles. We tried to use DB Replacer for replacing the codes but we ran into trouble with this part of the syntax:

{slider=This is my title} should become: {accordion title=”This is my title”}

So the closing bracket } should be prepended with a double quote “ that closes the title. However some of the content also contains other types of code that are closed with a } bracket. We need to make sure that the closing bracket only get prepended if it is part of a slider / accordion.

I suppose that this would be where knowledge of regular expressions comes in handy but we do not have this knowledge. Do you have any suggestions or could you maybe refer us to an online instruction that we could follow in this situation?

Kind regards!
Peter van Westen's Avatar Peter van Westen ADMIN
You could try something like with Regular Expressions:
\{slider=([^\}]*)\}
{accordion title="\1"}
Please post a rating at the Joomla! Extensions Directory
Joris Lange's Avatar Joris Lange
Hi Peter,

I do not understand a bit of this expression but it works like a charm 🙂

Thanks!
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription