Write Once Use Many

Reuse the same code over and over again on your site with the [include] context.

numero = 124
interpreted = N
texte = Reusing your same code over and over again on many pages within your website is a snap. The best examples would be to have an include file with your page header, navigation and page footer. Then from every page of your website you can insert the same files. This especially makes management of navigation links a snap because you only need to keep one text file up to date.
<body>[include file=/header_file.inc]<table><tr><td>[include file=/navigation_links_file.inc]</td><td>{the body of content would go here}</td></tr></table>[include file=/footer_file.inc]</body>
The example above shows the include files saved to the root directory of your website. You could organize a bit easier by saving them in an /includes/ directory. Doing so would change the code to look like this:
[include file=/includes/navigation_links_file.inc]
Reusing your same code over and over again on many pages within your website is a snap. The best examples would be to have an include file with your page header, navigation and page footer. Then from every page of your website you can insert the same files. This especially makes management of navigation links a snap because you only need to keep one text file up to date.
<body>
[include file=/header_file.inc]
<table>
<tr>
<td>
[include file=/navigation_links_file.inc]
</td>
<td>
{the body of content would go here}
</td>
</tr>
</table>
[include file=/footer_file.inc]
</body>

The example above shows the include files saved to the root directory of your website. You could organize a bit easier by saving them in an /includes/ directory. Doing so would change the code to look like this:
[include file=/includes/navigation_links_file.inc]

Matthew Perosi - Psi Prime

DOWNLOAD WEBDNA NOW!

Top Articles:

F.A.Q

A compilation of some user's questions...

WebDNA Modules

A list of the currently available modules...

[biotype]

BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...

WebDNA Libraries

A list of available libraries for WebDNA...

AWS Raw WebDNA LAMP-Plus WebServer

Amazon Web Services (AWS) README for Machine Image ID...

Download WebDNA Applications

WebDNA applications...

Related Readings:

Hideif on IP range

This will show or hide stuff according to the IP...

How to setup CODA to work with WebDNA?

This page will show graphically how to setup CODA as a WebDNA partner :-)...

Do you hate updating the copyright notice at the bottom of all your pages?

It's January 1st and you have to update the copyright notice at the bottom of all your websites...

WebDNA Google Map Mashup

Generate a Google map with pins on your database addresses...

How to create a RSS feed

How to create a RSS feed from yourdatabase on formation...

Formatting a long list in a table

How to show the result of a search as a table...