A TOWeb's field is a name beginning and ending with % characters that you may use inside the text content of your paragraphs in order to add any additional services or source code you may have to your web pages.

How to add a web counter to my homepage ? |
| A web counter is a small script code provided by your host or by a hit counter free service like for instance http://www.statcounter.com. If you don't know which web counter to use visit the web site of your host or contact them to find out the script lines that you need to copy/paste inside your web page. Once you have these lines, you need to create and use a script field in TOWeb. |
|

How to add a forum to my website ? |
| If your needs are fairly simple you can try using the i-Service Blog that allows your visitors to leave comments in real time into paragraphs of your site. But if your needs are larger or different then you will need to use a guestbook or a forum from your host provider or if your host provider does not offer this service you may use an external service like for instance http://myguestbookhost.com/. Once you have setup your forum or guestbook you can either place a link to it on your website (easiest solution recommended) or integrate it to your topic using the TOWeb fields if this is possible. And if you want your forum link to be placed in your website just add a new topic to your website using the option "An external website". |
|

Predefined Scripts |
| You can add scripts inside the text of a paragraph from the context menu (with a right click) or by typing the field's name. The list of predefined scripts available is the following : |
|
|
|
| Add a local search engine to your website (only available in the TOWeb's Professional and e-Commerce edition). For more information see also the search engine use and configuration |
|
|
|
|
| Display the last publication date of your website |
|
|
%TW-FAVORITE-LINK%
%TW-FAVORITE-BTN% |
|
Create a link so that users can bookmark your website Create a button so that users to bookmark your website
|
|
|
%TW-RSS-SMALL%
%TW-RSS-NORMAL%
%TW-RSS-LARGE%
|
|
Add a small RSS image button so that users can subscribe to your RSS feed Same as previous but with a medium RSS image Same as previous but with a large RSS image
|
|
|
|
|
| Add the country flags and links of the different languages of your website (if you use the multilingual website feature and only if you select the position of the language links "inside a paragraph or a panel", option located under the "Language links" tab) |
|
|
|
|
| Add a shopping cart button to preview the content of your website's shopping cart |
|
|
|
|
| Add a subscribe form to your mailing list (newsletter). In order to use this predefined field you first need to activate the i-Service Mailing list (only available in the Professional and e-Commerce editions of TOWeb) |
|
|

User Fields |
| A user field is a name that contains a text or script (Javascript, HTML, PHP, ASP…) and when placed in your text its name will automatically be replaced by its text or script content. |
|

Text Fields |
The example of %ADDRESS%
1) From the Fields' Editor create a new field by clicking on Add the new field 2) Its default name is NEW_FIELD. Rename it to ADDRESS 3) Set the Field Type to Text 4) In the Text Field Content replace the default text ("Enter your field text here") by your full address. You may enter it on several lines like for instance :
305 Easy street 94043, Mountain View, CA USA
5) Click on the OK button and save your changes.
Now you have created a field ADDRESS containing your address. Every time you will need to use your address in a paragraph of your topics, simply type %ADDRESS% (with % at the beginning and at the name) or insert it where you want with a right-clicking and by selecting ADDRESS from the popup menu. Then generate your website and this %ADDRESS% will be replace by the address you entered in all the web pages where you use it.
This example uses an email address but you may use text fields for any other purposes and text content you need (a copyright notice, the name of your company, a phone number, your slogan, etc). In fact any text information (short or long) that you may use at different places in your web site but do not want to update every time every where. |
|

Script Fields |
The example of %DATE% for the current date in JavaScript.
1) From the Fields' Editor create a new field by clicking on the Add the new field 2) Its default name is NEW_FIELD. Rename it to DATE 3) Set the Field Type to "HTML Script" 4) In the Script Field Content replace the default script with a copy/paste of the following lines of JavaScript source code : |
|
|
<script type="text/javascript">
var d = new Date()
document.open() ;
document.write(d.getDate())
document.write("/")
document.write(d.getMonth() + 1)
document.write("/")
document.write(d.getFullYear())
document.close() ;
</script>
|
|
|
|
5) Inside one of your topic add the following text :
The current date is : %DATE%
6) Generate and you should see, instead of %DATE% the current date displayed on your web page.
This simple script is just a small example of a JavaScript code displaying the current date. You may create or copy/paste more complex scripts containing HTML, Javascript, ASP, PHP, applets, etc. If you need to use additional files in the topic for your script (like for instance images, videos or applets) you can add them to the list of additional files.
PHP and ASP scripts
If you want to include a PHP (or ASP) script you need to use the HTML script as previously described and also to rename the topic root file name to index.php (or index.asp) accessible from "Topics" > "General" tab > "Modify the directory and index file name of this topic"
Other examples and possibilities to add HTML scripts
You may also add "Additional files" to your script using this tab associated to your script.
And if you only have a short html or script code you may consider to place its code lines directly inside your text without the need to necessarily create a TOWeb script field. The syntax to do this is to add tags like this: <html>YOUR CODE HERE</html> This may be useful for example to add a web counter script or to change the font of a text like in the following examples :
|
|
To display a text in red : <html><font color="red">this text is red</font></html> To display a text in a font size of 15 pixels : <html><font size="15px">the size of this text is 15px</font></html> To change the font name : <html><font face="courier new">this text font is courier new</font></html> To make a combination of all the previous examples : <html><font color="red" size="15" name="courier new">text in red with a 15px courier new font</font></html> |
|
|
|
|
|
|
|

Banners & ads of TOWeb |
| If you'd like to support our software and add a TOWeb link on your website, you can use one of the predefined script below (the script name to use is located below the image). Beware that there is no registration nor pay program for using these ads on your website. Adding these banners on your website will be free but if you like TOWeb and decide to do so we'll be grateful. |
|

%TW-AD1% |
 |
|

%TW-AD2% |
 |
|

%TW-AD3% |
 |
|

%TW-AD4% |
 |
|
|
|
|
|
|