Re: How to check for existing html
Posted: Wed Nov 12, 2008 10:34 pm
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
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