imScript Manual

Pre/Post - attribute

« Back  |  Next »
General information
Text field
Image field
Page information
Links & Menu
Data tags
User data
Date tags
API samples
imScript tags list
RSS feed
These attributes are used to set special properties for current text section by entering special tags/attributes inside text section tag. If text section will be without content, special tags/attributes will not be enabled on page. Pre attributes are used before text field content, and post attributes are used after text field content.

Example 1:

<?imcms:text no='1' pre='<span"heading">' post='</span><BR><BR>'?>
<?imcms:text no='2' pre='<span"normal">' post='</span><hr size="1">'?>

This example shows that text, entered in text field 1, will be displayed in heading mode and text, entered in text field 2, will be displayed in normal mode. Also between text fields will be two rows break and after content of the text field 2 will be placed horizontal line with 1 pixel thickness.

Example 2:

<?imcms:image no='1' pre='<table border="0" cellpadding="0" cellpspacing="0" width="100%">
<tr><td align="center" valign="middle" bgcolor="red">
' post='</td></tr></table>'?>

This example will put an image in the centre of the table and add a red background under it.

[Help for the whole system | imScript manual | All documentation]

Suggestions or comments? Please send us a mail: