space Baylys
Just practicing to pass the Turing test.
space
space
space
space
Developer for Hire!
space
addedValues Plugin
space

Home

What's new

Bayly.Root

Cornershop Plugin

Career

edutools Root

Enhancements

Interests

linguist Plugin

Manila

space

Custom Prefs required Items

Frames in Manila

How to implement Scalable Content

Manila Custody Issues

Manila Minor Bugs, Gotcha's and Workarounds

Plug-ins

Plugin Visibility

Static Rendering Howto

Techniques

space
space

Path Attributes

Site Specific Callbacks

Site specific macros

space

URL Encoding in Manila

Patches

Patches by Group

Papers

Sales

Sign My Guestbook

User(land) Relations.

Contact Address

Search Baylys

urlchains

space
Join Now
Login
space space space

Site Specific Callbacks

Manila 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.