Adding static text files to your templates

Adding static text files to your templates

You can add static files to your templates to extend the amount of text you can display.

There is a feature called "INCLUDE" that allows you to reference a text file that sits somewhere on your server to display on the product templates.

Create a text file and call it "producttext1.txt"

Insert here some product text you would like to display on your product description page into this new text file.

Save it to your server.

Now open your template and insert the following where you would like to have the new text display:

[field=pother1 INCLUDE]

The pother1 field is a spare field in your database. It can be any field though within the products table.

Save your tmp_product.htm file.

Now open a product record in the database.

In the pother1 field enter the name:

producttext1.txt

Update your record and now view the product in the front end of the site in your browser.

The text will now display in your template.


Times Viewed:
2249
Added By:
Cam Flanigan
Date Created:
12/2/2005
Last Updated:
12/2/2005