Hans-Günter Heiserholt
Hi Peter,
oh oh. A lot of stuff and a greate new jungle of parms! 😉
I got it to run for an example.
But now there are more questions. I have at least 91 ! J3 snippets with parms like "\1, \2, \3,\...".
Is there a way to automise the conversion process to a J4 snippet, or must it been manually done?
I have the following idea:
1) In the spippet itself the old \1,\2,\... placeholders must be changed to %parm-1%, %parm-2%, %parm-n%. This could be done with the help of DB-Replacer. is there a way to do it via regex?
2) in the syntax of the J3 {snippet alias-txt|text1|text2|text...} must change
to a J4 format as {snippet alias="alias-txt parm-1=text1" parm-2="text2" parm-n="textn"}
This should be very complex to do it automatically, or is there a regex doing it?
3) The next very complex thing is to individually save the parms for each snippet in the J4_snippets table in den DB.
Is there a way to generate a text file, witch content can be loaded into the DB via myPHPAdmin?
Oh oh, that all will cost a lot of livetime.