Closed Thread Icon

Preserved Topic: Include files and a little frontpage... Pages that link to <a href="https://ozoneasylum.com/backlink?for=15596" title="Pages that link to Preserved Topic: Include files and a little frontpage..." rel="nofollow" >Preserved Topic: Include files and a little frontpage...\

 
Author Thread
ZOX
Bipolar (III) Inmate

From: Southern Alabama, USA
Insane since: Sep 2000

posted posted 12-03-2000 10:51

Include files... what's the drawback?
I have not been using them before, but now I have started to do that, and to me it seems like a wonderful method.
It just seems too good to be true, and there has to be some sort of drawback...?
I am making a page on which the first page as a "latest news" section. The guy in charge at the company has a small knowledge of HTML but he still wants to be able to change the news himself. So what I am planning on doing is putting that news text in a separate asp page, and then just incude it on the main page. That way there is no risk with thsi guy messing with the front page. Seems like a very good solution to me, but since I have not seen it mentioned much on the web, I have this feeling that there might be some drawbacks... anyone knows?

If there IS some drawback, what then about using a database and an admin page for him to update the text? I am doing that already for prices and dates and such on the page, but for the actual text? Is there any drawback with this? I guess it would be impossible to put linebreaks and such in the text that comes from the database. Or?

One last thing. This guy is using frontpage. I have heard horror stories about how Frontpage changes the code. However that was a few years ago, and I wonder now if the never version still do this? If so, does anyone know what sort of things it changes? Is there anything I should avoid, if this guy wants to be able to open up the pages in Frontpage, change some text, and then save it again.

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted posted 12-03-2000 14:35

OK, there are a few drawback to consider with this, but includes are a good solid way to keep the clients away from the heavy HTML code. Frontpage will have some probelms, even if you want to use it to just do the formatting for a text page that will be included, it will simply *insist* on putting all of the proper <html, <head> stuff in that page, even if it's bad to have it there.

You could store this stuff in the database, you'd just need to make sure that certain characters get translated out to something readable, typically you'll need to translate "new lines" as <br> at the very least. Oracle makes this very easy, I don't know about SQL, but should be doable. If you follow along this trail for too very long, you can find yourself developing a complete publishing system, something that has lots of little twists and turns. (You could also buy something like Vignette or Broadvision, spending 10's of thousands of $$$. Guess why they are able to charge this kind of money?)

Bottom line? Includes are awesome, and I can't quite figure why more people don't use them, chances are because many developers have been isolated from the servers they work on, and don't realize it's possible!

Your pal, -doc-

« BackwardsOnwards »

Show Forum Drop Down Menu