|
The Metadata Plugin Metadata Management for Manila |
Site last updated 2/24/2006; 12:33:21 PM |
|
Triggers
Note: at this point triggers are for those familiar with Frontier scripting only. There is no interface at this point; you have to create these tables directly in Frontier's object database. Triggers give us a way of defining an action to take when a certain condition is true. An example may be if you have a meta type called available_to_public which contains the value false while your flunkies work on the page content, and when it's ready to release you flip it to true. A trigger that replaced bodytext with the text This page is not yet available, you little sneak! may come in handy. Let's suppose that for some reason we want to replace the bodytext of a page if the keywords meta type of a page has the value 'six'. The replacement of bodytext will be carried out by a script named replaceBodytext. Study the following screenshot, which shows the #plugins.data section of a Manila site. Inside a triggers table we have three subtables:
I will probably be adding one more entry to the subtables containing the condition, a catch-all string object that will probably be named There are responses to this message:
|
|||||||||||||||||||
| This page last updated Saturday, February 16, 2002 at 10:11:10 PM. | (14351) |