Page 1 of 1

$view for plugins/freetag

Posted: Fri Nov 25, 2011 1:27 pm
by yellowled
As of now, do we have any means for templates to find out whether a user is viewing pages generated by the freetag plugin, i.e. a list of entries tagged with a specific tag? (/plugin/tag/foobar)

YL

Re: $view for plugins/freetag

Posted: Fri Nov 25, 2011 1:39 pm
by garvinhicking
Hi!

Yes, when that happens the variable $CONST.PLUGIN_VARS_TAG contains information.

HTH,
Garvin

Re: $view for plugins/freetag

Posted: Fri Nov 25, 2011 8:29 pm
by yellowled
garvinhicking wrote:Yes, when that happens the variable $CONST.PLUGIN_VARS_TAG contains information.
Okay, so how do I use that in an entries.tpl? {if $CONST.PLUGIN_VARS_TAG}…{/if}?

YL

Re: $view for plugins/freetag

Posted: Sat Nov 26, 2011 2:19 am
by yellowled
yellowled wrote:Okay, so how do I use that in an entries.tpl? {if $CONST.PLUGIN_VARS_TAG}…{/if}?

Code: Select all

{if $CONST.PLUGIN_VARS_TAG != 'PLUGIN_VARS_TAG'}…{/if}
seems to work. Thanks.

YL