addedValues Plugin

...Powerful Free! Database Expansion for Manila
logoBottle:

(1 or more words)


Get tropes here!
Click to see internals
Report bug


Knowledge Venue

sitepic_knowledgevenue.gif:
Viewable with Any Browser

Members
Join Now
Login

setPathAndShortcut

This action script works for triggers that fire after a new or changed message,story or picture and is desigend to allow messages to be entered in the site structure with one or more computed paths. It works by looking for certain ungrouped message variable, if they exists the values are used to to construct the site structure entry or entries. Normally you would define computed variables that calculate values accordign to your needs. Another possibility is to have a form element in yoru Manila ETP form.

Looks for an ungrouped message variable setPathTo, and uses the value to create a path in the site structure. setPathTo may be multiple valued , in which case all paths are added. A path is a / delimited string that is the part of a page url relative to the home page such as "/products/catalog/rocketships". If the ungrouped message variable setNameTo exists and its value isn't empty, the value is used as the name attribute of each entry added to the site structure.

If the ungrouped message variable setShortcutTo exists and its value isn't empty, creates a shortcut whose url is the first in the list. Typically setPathTo and setShortcutTo would be computed variables.

You can also set the subject of a message by assigning values to an ungrouped message variable setSubjectTo.

This action script also converts the message into a story.