Page 1 of 1

Re: How to check for existing html

Posted: Wed Nov 12, 2008 10:34 pm
by garvinhicking
Hi!

All plugins emitting thise would need a common standard. In placed where a simple "echo" is used, a followup plugin is not able to tell what has been emitted before. Only if $eventData is used, the plugin can check for that variable (in certain hooks) to operate on previopus content.

The best way would be to make each plugin use a global variable like $serendipity['plugin_vars']['google_maps'] = yes, and if once set, no followup plugni will emit this.

HTH,
Garvin

Posted: Thu Nov 13, 2008 10:12 am
by kleinerChemiker
another posibility could be to create an event plugin that only emits the header and all the other plugins require this event plugin. but i think garvins way is the better one.