Situation:
{exp:channel:entries channel="X"}
{if 'value' != '{exp:ownplugin:action attr_1="{channelX_tag}” attr_2=“key”}’}
ok
{/if}
{/exp:channel:entries}
Problem:
When showing this template, the ownplugin is always giving back the wrong result. After some troubleshooting, the problem seems to be that it is trying to use the exact value “{channelX_tag}”, where I would expect it to first parse that tag, and replace the {channelX_tag} with a “real” value, then parse the plugin with that value, and then parse the complex if statement…
When I use the ownplugin outside the if statement, all works well.
When I put the {channelX_tag} somewhere else in the template, it gets parsed before the plugin, and thus then all works well too.
But in the case above, it is just completely ignoring the {channelX_tag}.
Parsing inward or outward is not working, as expected, as the only plugin is my own plugin. Could it be that it is ignoring everything from the plugin to parse, as it is a “{” inside some “’”?
Could it be that the tag is embedded too deep? And is there a solution for that?
Can I maybe use some code in my plugin constructor to check for possible redundand tags?
I’m curious, and hoping that some of you may know a genious way to get out of this trouble! 😉