Trying to figure out what appears to be a global variable parse issue in a module add-on template tag.
Here's a sample of the tag used in the template:
{exp:syn_fb_comments:show url="{current_url}"}{fb_comments}{/exp:syn_fb_comments:show}
In the module, when I grab the param url
:
$url = $this->EE->TMPL->fetch_param( 'url' );
My understanding is that the {current_url}
tag should already be parsed as the actual URL. However, in fetching the parameter value, it returns the raw tag itself, {current_url}
.
Question, is there something specific that needs to be done to have these template variables parsed before processing the tagdata for the add-on?
Assuming either I'm missing something simple here, or I'm just doing it wrong! Any insight is appreciated.
EE Version 2.5.5