Hi!
Am having a wee problem. Am working on a plugin, and am needing to know the tags attached to an entry in the 'backend_publish' hook.
Looking at $eventData, I can see every bit of information about the entry about to be saved, except the list of tags.
Any idea how I can retrieve those tags for the entry at this point?
cheers
Daryn
Getting freetag list for an entry
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Getting freetag list for an entry
Hi!
You should be able to see the list of all submitted information to the backend_publish hook by looking at the POST data; check a print_r($serendipity['POST']) which should contain the tags.
If your plugin is executed AFTER the freetag plugin (you can change the order of execution through the plugin manager), you can also query the freetag-database-table for the current entry_id...
HTH,
Garvin
You should be able to see the list of all submitted information to the backend_publish hook by looking at the POST data; check a print_r($serendipity['POST']) which should contain the tags.
If your plugin is executed AFTER the freetag plugin (you can change the order of execution through the plugin manager), you can also query the freetag-database-table for the current entry_id...
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/
# 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/