Page 1 of 1

Getting freetag list for an entry

Posted: Sat Nov 04, 2006 2:30 am
by dazza
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

Re: Getting freetag list for an entry

Posted: Sun Nov 05, 2006 1:06 pm
by garvinhicking
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