The current record is the page-record of the menu item - just like you have it with GMENU/gifbuilder. Now, if you would like to get data from the current page record, use stdWrap.data = page : [fieldname]
Property: | Data type: | Description: | Default: |
|---|---|---|---|
allWrap | wrap /stdWrap | Wraps the whole item | |
wrapItemAndSub | wrap | Wraps the whole item and any submenu concatenated to it. | |
subst_elementUid | boolean | If set, all appearances of the string '{elementUid}' in the total element html-code (after wrapped in .allWrap} is substituted with the uid number of the menu item. This is useful if you want to insert an identification code in the HTML in order to manipulate properties with JavaScript. | |
RO_chBgColor | string | If property RO is set (see below) then you can set this property to a certain set of parameters which will allow you to change the background color of eg. the tablecell when the mouse rolls over you text-link. Syntax: [over-color] | [out-color] | [id-prefix] Example: page = PAGE page.typeNum = 0 page.10 = HMENU page.10.wrap = <table border=1>|</table> page.10.1 = TMENU page.10.1.NO { allWrap = <tr><td valign=top id="1tmenu{elementUid}" style="background:#eeeeee;">|</td></tr> subst_elementUid = 1 RO_chBgColor = #cccccc | #eeeeee | 1tmenu RO = 1 } This example will start out with the table cells in #eeeeee and change them to #cccccc (and back) when rolled over. The “1tmenu” string is a unique id for the menu items. You may not need it (unless the same menu items are more than once on a page), but the important thing is that the id of the table cell has the exact same label before the {elementUid} (red marks). The other important thing is that you DO set a default background color for the cell with the style-attribute (blue marking). If you do not, Mozilla browsers will behave a little strange by not capturing the mouseout event the first time it's triggered. | |
before | HTML /stdWrap | ||
beforeImg | imgResource | ||
beforeImgTagParams | <img>-params | ||
beforeImgLink | boolean | If set, this image is linked with the same <A> tag as the text | |
beforeROImg | imgResource | If set, ".beforeImg" and ".beforeROImg" is expected to create a rollOver-pair. | |
beforeWrap | wrap | wrap around the ".before"-code | |
linkWrap | wrap | ||
stdWrap | ->stdWrap | stdWrap to the link-text! | |
ATagBeforeWrap | boolean | ||
ATagParams | <A>-params /stdWrap | Additional parameters Example: class=”board” | |
ATagTitle | string /stdWrap | Allows you to specify the "title" attribute of the <a> tag around the menu item. Example: ATagTitle.field = abstract // description This would use the abstract or description field for the <a title=""> attribute. | |
additionalParams | string /stdWrap | Define parameters that are added to the end of the URL. This must be code ready to insert after the last parameter. For details, see typolink->additionalParams | |
doNotLinkIt | boolean | if set, the linktext are not linked at all! | |
doNotShowLink | boolean | if set, the text will not be shown at all (smart with spacers) | |
stdWrap2 | wrap /stdWrap | stdWrap to the total link-text and ATag. (Notice that the plain default value passed to stdWrap function is “|“.) | | |
RO | boolean | if set, rollOver is enabled for this link | |
after... | [mixed] | The series of “before...” properties are duplicated to “after...” properties as well. The only difference is that the output generated by the .after.... properties are placed after the link and not before. | |
altTarget | target | Alternative target overriding the target property of the TMENU if set. | |
allStdWrap | ->stdWrap | stdWrap of the whole item |
[tsref:(cObject).HMENU.(mObj).TMENUITEM]