Any freetag variable I can use in smarty?
Any freetag variable I can use in smarty?
Is there any variable available in smarty with the current TAG name (of freetag plugin) being opened?.
Melvin D. Nava
Venelogía
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?
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
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/
# 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/
Re: Any freetag variable I can use in smarty?
Hello Garvin, "assign" only shows: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}
- 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
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?
Hi!
Yes, one of those constants should work. But try {$CONST.PLUGIN_VARS_TAG}, the $ is important
Regards,
Garvin
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/
# 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/