When you create code blocks using the Server Behavior Builder (see Using the Server Behavior Builder for more information), you must specify where to insert them in the pages HTML code. The Insert Code and Relative Position pop-up menus let you choose where to insert the code block in the document, and then specify a position relative to another tag in the page.
To learn more about the code block positioning options and how they affect your custom server behavior, see Code block positioning within web pages.
The server behavior is listed in the Server Behaviors panel (Window > Server Behavior), and can be viewed by clicking the click the Plus (+) button.
See Testing server behaviors for more information.
If you enter a tag, dont include the angled brackets (<
>
).
You can insert your code block just before or just after the opening or closing tags. You can also replace the tag with the code, insert the code as the value of an attribute of the tag (a box appears to let you select the attribute), or insert the code inside the opening tag.
You can insert your code block just before or just after the selection. You can also replace the selection with your code block, or you can wrap the code block around the selection.
If you want to wrap the code block around a selection, the selection must consist of an opening and closing tag with nothing in between, as follows:
<CFIF Day="Monday"></CFIF>
The opening tag piece of the code block is inserted before the selections opening tag and the closing tag piece of the code block is inserted after the selections closing tag.