Page 1 of 1

Display page as txt and not html?

PostPosted: Mon Apr 21, 2003 7:46 pm
by Phil
Is there a tag we can add to custom template to make it display as text
(page.txt).
Or any other way do do this?

thanks,
Phil

Re: Display page as txt and not html?

PostPosted: Mon Apr 21, 2003 9:05 pm
by loren_d_c
The filename of the page doesn't have anything to do with the custom
template, it is set in the page record (Edit Page Contents) or the
product record (for product More Info Pages, Edit Product Info). So if
your browser will display a file with a .txt extension as text, then you
can name the file that regardless of the template.

However, Internet Explorer often thinks it is smarter than you, and will
render a txt file as HTML anyway, especially if you start the document
with <HTML>. If you leave HTML out of the .txt file, however, it may
display as text just fine.

If you want to display HTML as text within an HTML document, there are
tags you can use like <XMP> </XMP> that may keep the browser from
rendering any HTML between them. See a good HTML reference book for more
information about those kind of tags.

-Loren



Phil wrote:
Is there a tag we can add to custom template to make it display as text
(page.txt).
Or any other way do do this?

thanks,
Phil