Any freetag variable I can use in smarty?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
mdnava
Regular
Posts: 57
Joined: Wed Dec 15, 2004 10:17 pm

Any freetag variable I can use in smarty?

Post by mdnava »

Is there any variable available in smarty with the current TAG name (of freetag plugin) being opened?.
Melvin D. Nava
Venelogía
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Any freetag variable I can use in smarty?

Post 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
# 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/
mdnava
Regular
Posts: 57
Joined: Wed Dec 15, 2004 10:17 pm

Re: Any freetag variable I can use in smarty?

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

Re: Any freetag variable I can use in smarty?

Post by garvinhicking »

Hi!

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

Regards,
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/
mdnava
Regular
Posts: 57
Joined: Wed Dec 15, 2004 10:17 pm

Great!!

Post by mdnava »

Thanks Garvin, works like a charm...
Melvin D. Nava
Venelogía
Post Reply