addedValues.editShortcutLink Macro
Syntax
{addedValueMacros.editMessageLink(shortcutID, formID, whatText, whatTarget, anchor, class, title, accesskey, hreflang, tabindex, onmouseOver, onmouseOut, onClick)}
- shortcutID - the key of an addedValue shortcut entry.
- formID - the name of update form for shortcut variables
- whatText - a string which will be the text of the link.
- whatTarget (optional) - if supplied, adds a target attribute to the anchor tag
- whatTarget - optional, value of the target attribute for the link.
- anchor - optional, value of the anchor attribute for the link.
- class - optional, value of the class attribute for the link.
- title - optional, value of the title attribute for the link.
- accessKey - optional, value of the accesskey attribute for the link.
- hrefLang - optional, value of the hreflang attribute for the link.
- tabindex - optional, value of the tabindex attribute for the link.
- onmouseOver - optional, value of the onmouseOver attribute for the link.
- onmouseOut - optional, value of the onmouseOut attribute for the link.
- onClick - optional, value of the onClick attribute for the link.
Examples
| {addedValueMacros.editShortcutLink("Frontier", "editBook", "Edit readlist Entry")} |
|
Semantics
If the user has edit permission for the specified shortcut, returns an anchor tag pointing to a page to the shortcut with the supplied form. If any of the optional parameters whatTarget, anchor, title, title, accesKey, hrefLang, tabindex, onmouseOver, onmouseOut, onClick are present they are used to build the link. Otherwise returns aN HTML comment with an explanatory text, such as
<!-- no member -->
Useful in reports.