$view for plugins/freetag

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

$view for plugins/freetag

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: $view for plugins/freetag

Post by garvinhicking »

Hi!

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

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: $view for plugins/freetag

Post 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
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: $view for plugins/freetag

Post 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
Post Reply