Page 1 of 1

Any freetag variable I can use in smarty?

Posted: Sun May 18, 2008 12:02 am
by mdnava
Is there any variable available in smarty with the current TAG name (of freetag plugin) being opened?.

Re: Any freetag variable I can use in smarty?

Posted: Sun May 18, 2008 1:12 am
by garvinhicking
Hi!

Yes, there is...I couldn't look up which one. Inside serendipity_event_freetag.php, if you search for "assign" you should see all variables.

I believe one constant is set for the current tag, that you can access through $CONST.xxxx (like CONST.PLUGIN_FREETAG}

Regards,
GArvin

Re: Any freetag variable I can use in smarty?

Posted: Mon May 19, 2008 7:04 am
by mdnava
garvinhicking wrote: Yes, there is...I couldn't look up which one. Inside serendipity_event_freetag.php, if you search for "assign" you should see all variables.

I believe one constant is set for the current tag, that you can access through $CONST.xxxx (like CONST.PLUGIN_FREETAG}
Hello Garvin, "assign" only shows:
- assign('raw_data', $raw_data)

While constants in that file:
- PLUGIN_VARS_TAG
- NO_EXIT
- PLUGIN_VARS_DISPLAYTAG
- FREETAG_MANAGE_URL
- FREETAG_EDITENTRY_URL

I tried the {CONST.PLUGIN_VARS_TAG} but the Blog only showed a blank page.

Re: Any freetag variable I can use in smarty?

Posted: Mon May 19, 2008 9:25 am
by garvinhicking
Hi!

Yes, one of those constants should work. But try {$CONST.PLUGIN_VARS_TAG}, the $ is important :)

Regards,
Garvin

Great!!

Posted: Mon May 19, 2008 7:52 pm
by mdnava
Thanks Garvin, works like a charm...