|
Baylys Just practicing to pass the Turing test. |
||||||||||||||||||||||||
|
Site Specific CallbacksManila supports a whole range of callbacks. A callback is a script that is imvoked when a certain condition is met, for example when a new message is added to a Manila website. However, the scripts in the callback tables are global - the scripts are called for every changed message in every website. This technique allows you to have Manila callbacks which are invoked only when something changes in one specific Manila website. The advantages are that your callbacks are easier to maintain and a small improvment in overall efficiency. To use this technique, you must have access to your server. Install a table called #callbacks at the top level of yoru site. You can add as many scripts to the table as there are callback types, each taking the names of callback, such as changedmessage, newmessage, etc. Then run manilasitecallbacks.init. That's it.
The manilasitesCallbacks suite can be found in in bayly.Root.
|
|||||||||||||||||||||||