Page 1 of 1

Event hooks in entries?

Posted: Tue Aug 23, 2005 1:33 pm
by Thomas
Hi,

is it possible to place an event hook also in an entry (for instance in the extended field? This might be a silly question but for some reason it is of interest for plugins.

To explain it more detailed:
I post an article and want to add a gallery (plugin still not written yet). I add a code like <serendipity event_hook something blablabla...> and with the given data a gallery is added.
Or is this just used in templates?

Regards, Thomas

P.S.: BTW, I still miss an overview of all existing hooks in 0.8.4 and a description, what they're used for. ;)

Re: Event hooks in entries?

Posted: Tue Aug 23, 2005 1:42 pm
by garvinhicking
You can't put event hooks into the entry, because this is PHP code, and it would need to get executed.

What you can do, is write wrapping plugins. Examples for that is the smartymarkup and includeentry plugins.
P.S.: BTW, I still miss an overview of all existing hooks in 0.8.4 and a description, what they're used for. ;)
Then please help us to document those! Gather all hooks and I'll tell you what they are for and insert them in those documents:

http://www.s9y.org/index.php?node=43
http://www.s9y.org/index.php?node=102