How to check for existing html

Discussion corner for Developers of Serendipity.
Post Reply
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How to check for existing html

Post 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
# 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/
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Post 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.
Post Reply