Jump to content

How do I separate text from html


securobo2

Recommended Posts

Alright, I am putting up a website. It is very simple in design. Just used XHTML up to this point. I would like to maintain this manually, so nothing fancy is necessary. However, I need help turning the design into something that can be redundant.Here is a link to my work in progressindie-hq.netEverything could be seen by viewing the source in your browser. The css file of course could be retrieved that way also.What I would like to do is maintain Reviews and News in their own documents. For example I would have a news.txt and reviews.txt document. Then when someone visits the site and clicks on Reviews for the reviews or Home for the news, I would like to list 10 items (reviews or news). If I add more items to the *.txt files, they should divide up automatically into pages of 10 items each. They would show up in the content area div. I would like them to be served with a small link list at the bottom like thisPrev 5 6 7 8 9 NextThe traditional page links setup. In this way I have 2 questions. How could I accomplish this the easiest way and 2, can someone give me an example. Once you see my layout design in source view, you will immediately see that it is extremely basic. This is both because I am new to this and also, because I try to keep it to a minimum. In the least amount of code, what can I do. If you have other suggestions than using *.txt files, please let me know.One more thing. I would like to include <img> tags in the text file, so I can add images to the reviews. I don't want to use frames whatsoever, and certainly not just load text. The text might be formatted with different colors and etc.If possible, please only XHTML, but if you suggest PHP, please - the bare absolute minimum in functionality, just enough to load the reviews and add images. If I use a scripting language in the future, it will be PHP.

Link to comment
Share on other sites

I added some generic text for news on the home page and generic text and image placeholders for reviews on reviews page. So far, I don't know how I would keep it in separate files, so I just manually added html. This is difficult to maintain if I want to add and remove things, so any advice is appreciated

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...