addedValueMacros.verbThisPage
Syntax
{addedValueMacros.verbThisPage (buttonID, condition, actionURL="")}
- buttonID - the name of the submit button in the form.
- condition - the name of an addedValues query.
- actionURL - optional, the url to post the form results to. If empty, addedValues will extract the url of a shortcut whose name is in buttonID and use that instead. If not empty, but the name of an entry in the site #urls table, will use that entrys' current value.
Examples
| {addedValueMacros.verbThisPage("New Story Like this", "productStory", "")} |
Semantics
VerbThisPage extends the Manila ETP form by adding another button inside a form that if submitted, POSTs the msgnum and referer to the url determined by actionaURL or buttonID. This allows fatures such as a form with a button "New Story like This" that creates a new story.
If there are errors, the macro returns an error message in a string within an HTML comment.
The macro examines the actionURL parameter and if it begins With a { and ends With a } makes an attempt to evaluate the expression, after illegal macros are neutered. This defers evaluation until the last possible moment, and since the condition may not be true, that evaluation may be omitted which is a potentially significant optimisation.
See also