Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Worlds Simplest CMS - But not without problems 1

Status
Not open for further replies.

Gojira999

Technical User
Jun 22, 2004
57
GB
I have built a website for a local football team that requires regular updates for results etc.

Rather than build a sophisticated CMS system (I wouldn't know how anyway!) I have devised a method where I insert an iFrame box & use that to view a simple .txt file which is uploaded by the client regularly.

This seems to work fine except that the font style of the text file shows the browser default and so is not in keeping with the rest of the file.

Is there any way around this, or is my budget CMS solution fatally flawed?

Thanks for looking!
 
If you have the ability to use server side includes, yes. If not, I'm afraid it is going to be very hard. Server side includes (SSI) work in a similar way as iframe but are (especially in your case) far superior. SSI don't insert an entire new page inside an existing page but just put the text from the file into existing one. In this way, you can insert text files into a predefined container, which has fonts, sizes, colors, etc. specified. Instead of
<iframe src="text.txt"></iframe>
you would call:
<!--#include file="text.txt"-->

More on SSI is here: and
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top