I just came across this while experimenting with a new plugin idea as well, so I’d like to ask the actual EE developers: is this ‘safe’ to use then or is this considered a ‘hack’/will likely break soon or anything?
In case it is considered ‘bad’, maybe this should be turned into a feature request for a function that lets developers access get all the tag parameter names and values at once in their plugins. Because this is really useful, in my case the whole add-on handling would be a lot more complicated/a lot more to type for the end users trying to implement it in their own templates.
I wouldn’t see that as bad, but you probably should have an array full of all of your expected params with default values if you do it dynamically like this. It’s better to account for something before hand than to figure out what the heck is happening afterwards 😊
Sure thing! This is a ‘special case’ though! 😊
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.