CMS help pages

Print this page
You are here: Home > [Developers] > Templates > Miscellaneous

Miscellaneous

Comments <c> . . . </c>

This tag enables you to put notes and instructions to the user within the template. These comments will appear in the design screen while not in preview mode.

Example: <c>Use this area to describe the prize draw</c>

You can wrap comment tags around other HTML and si5 source tags (see hidden fields).

Example:

<c>
Select image 1: <si5 id=img1 hidden=source><br>
Select image 2: <si5 id=img2 hidden=source><br>
</c>
<img src="<si5 type=imageSource id=img1>">
<img src="
<si5 type=imageTarget id=img2>">

Publish-only content //* . . . *//

Content within these tags will not be rendered within the designer. The content will only be included in the page when it is published. Use the publish-only tags to disable functions that would create a problem if activated within site-in-5. The tags can be applied anywhere in the template.

Example 1:

<form>
<input name=myinput>
//*<input type=submit>*//
</form>

When the user is updateing their website in site-in-5 they will not see the submit button. The submit button will be included in the published website.

Example 2:

<input type=button value="Click me" //*onclick="someFunction()"*//>

Here, the user will see the button but the button will not do anything within the designer.

Directly referencing images and files

You can reference uploaded images or files directly from within a template using the relative path:
pics/ or
files/

Any images referenced in this way will be published with the website.

Favicon

To include a "favicon" upload the favicon.ico as a file and put the following code within the <head> tags of the page template.

Example:

<link rel="shortcut icon" href="files /favicon.ico" type="image/x-icon">