Online documentation - WebsydianExpress v3.0 |
WebsydianExpress supports a number of special replacement markers, which controls special behavior of the framework.
The replacement markers are commands interpreted by the PageGenerator at runtime. When a replacement marker is identified as one of the special replacement markers the PageGenerator reacts as specified below.
/(WSACTION)
This replacement marker will give you the value of the form action field found on the site settings.
/(WSHTPREF)
/(WSHTPSRE)
These replacement markers are used to the the values of the URL fields found on the site settings dialog:
/(WSHTPREF) references the value of the "HTTP URL" field on the site settings.
/(WSHTPSRE) references the value of the "HTTPS URL" field on the site settings.
<a href="/(WSHTPSRE)">Direct link to site (secure)</a>
/(WSRESURL)
/(WSCSSREF)
/(WSSRCREF)
These replacement markers are used to get the values of the resource information specified on the folder.
<link rel="stylesheet" type="text/css"
href="/(WSCSSREF)" media="screen, print">
<script language="JavaScript"
src="/(WSSCRREF)"></script>
</head>
<!--/(GRID-&1)-->
&1 specifies the number of rows shown in the grid following the replacement marker.
Then you can change the number of rows shown for the current presentation of the process simply by modifying the HTML template.
If no grid length marker is specified before a grid occurs in the template, the standard Websydian functionality for defining the number of rows will be used.
Describes that the number of grid rows for the user information is set to 10 rows.
<!-- /(NAME-&1) /(WSYD_SIGN)/(FrmSEvn) -->
<FRAME NAME="&1" SRC="/(WS_URL)/(WSURLPARMS)">
This replacement marker makes it possible to use the definitions from the site structure tree to populate a frame in a frameset.
The frame specified by &1 must be defined in the site structure for a site element which is a child of the frameset containing the tag.
The value of the attribute NAME in the HTML tag FRAME must correspond to the name defined in the replacement marker.
Among other things this makes it possible to populate a frame based on the roles assigned to the current session.
For information on how to create a frame please look here.
/(MENU-&1) /(WSBEGIN)
<p><a target="/(WSMNUTAR)"
href="/(WSMNUURL)">/(WSMNUTXT)</a></p>
/(WSEND)
This tag specifies that a link, which can activate another business process is to be shown on the page. &1 specifies an alias defined in the administration menu. This alias indicates which site element is to be used when the link is activated.
The link will only be shown if the current session has an authorization level, which is equal to or greater than the site element indicated by the alias.
The site element specified by the alias MaintainProcess will be started when the link defined by the <a> tag is activated in the browser.
/(EOF)
This replacement marker stops the PageGenerator from reading the rest of the template.
The text following the EOF marker will not be sent to the browser.
To the PageGenerator anything following the EOF marker could as well not be there.
This also means that the text preceding this marker must contain a full HTML document.
This can be used if you wish to communicate information from the developer to the web page designer about the specific template - or if you wish to have the original template available in the one you have applied layout to.