Display page as txt and not html?

This is an archive of old posting to the User Forum

Display page as txt and not html?

Postby Phil » Mon Apr 21, 2003 7:46 pm

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
Phil
 

Re: Display page as txt and not html?

Postby loren_d_c » Mon Apr 21, 2003 9:05 pm

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
loren_d_c
 
Posts: 2571
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to User Forum Archive

Who is online

Users browsing this forum: No registered users and 73 guests