Peter van Westen
ADMIN
There definitely be dragons.
This could be done in (at least) 2 ways, both of which I do not really recommend.
First way would be to create a couple of ReReplacer items.
- The first would search for a a starting {tr-time ...} tag and the first following format tag (before the end tag). Then replace that with your <time> tag + php code. It will repeat that replacement ('Thorough' option), till all nested format tags are replaced.
- The second will replace the initial {tr-time ...} tag.
- The third will get rid of the ending {/tr-time} tag.
The second way would be to create a search that will find the entire {tr-time ...}...{/tr-time} blocks.
Then in the replacement pass that to a php block which does all the magic you need. So find the initial tag with the date and format. And all the nested format tags. And replace all those using the initial format.
But, then you have pretty much coded a complete plugin. So then it may be better to just create a dedicated plugin for this.
PS: you do not have a subscription for ReReplacer. I do not offer support on the free versions. So if you need further help, please purchase a subscription for it.
Please post a rating at the
Joomla! Extensions Directory