Updating web content from text file...or other solution?

This is a discussion on "Updating web content from text file...or other solution?" within the Web Page Design section. This forum, and the thread "Updating web content from text file...or other solution? are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Mar 16th, 2006, 07:48
New Member
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Talking Updating web content from text file...or other solution?

Hello!

I'm fairly new to all of this so I don't even know if I'm posting in the right forum.....apologies if not. Bascially I'm designing a site for someone and when I'm done they would like to be able to update/add to the content of one page by themself.

What's the best way of going about this without compromising the design of the site itself?

Thanks for your help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Mar 16th, 2006, 09:53
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Updating web content from text file...or other solution?

Server side solution php or asp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Mar 16th, 2006, 20:26
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Updating web content from text file...or other solution?

php would be the best, especially if your not too experienced. ASP is really good if you know what your doing it take a while to learn but your best bet right now is to use php.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Mar 16th, 2006, 20:56
SuperMember

SuperMember
Join Date: Aug 2003
Location: Castle Rock, CO
Age: 36
Posts: 163
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Updating web content from text file...or other solution?

Well there are actually at least six ways:
SSI - and using the extension shtml or shtm (server side)
ASP - using the extension asp (server side)
PHP - using the extension php, phtml, phtm (server side)
JavaScript - using the extension html or htm (client side)
Ajax - more information Ajax Includes Script
Frames - Frames Tutorial
They depend on your server and the way it is set up. Including the file is is basically like
SSI
Code: Select all
<!--#include file="includes/nav.html" -->
ASP
Code: Select all
<!--#include file="includes/nav.html" -->
PHP
Code: Select all
<?php include("includes/nav.html"); ?>
JavaScript
Code: Select all
<script src="includes/nav.js"></script>
With the server side the file is parsed on the server before being rendered in the browser. The nav.html would have your code that is your navigation only - for example:
Code: Select all
| <a href="/default.asp">Home</a> | <a href="/about.asp">About</a> | <a href="/contact.asp">Contact</a> |
And that would be it - nothing else is needed since everything else will be pulled from the main page that is calling for the included content.
With the JavaScript, you it would be a bit different, you would save this as nav.js:
Code: Select all
<!--
document.writeln("| <a href=\"/default.asp\">Home</a> | <a href=\"/about.asp\">About</a> | <a href=\"/contact.asp\">Contact</a> |");
//-->
and then call it in the page like this:
Code: Select all
<script src="includes/nav.js"></script>
however, some search engines do not read JavaScript since it is a client side language is (if by chance) the user has JavaScript disabled, then they would not see the JavaScript.
For the type of hyperlinks check out types of hyperlinks - I would recommend using Virtual if you do use the server side includes.
Check with your hosting company to see what server side includes they will support.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Mar 16th, 2006, 23:25
Reputable Member
Join Date: Jul 2005
Posts: 400
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Updating web content from text file...or other solution?

I recently had to do this.

I created the main page... bulletins.php or whatever.

I then created a seperate file... data-bulletins.htm that gets included using the PHP include. Using htm extension merely allows it to be opened by more editors without issues.

The person doing the text updates was taught very limited heading, paragraph and list tags and this allows them to populate the file.

All they do is open up the FTP program, edit the data file and save it back.

There are more complicated ways, but I like simplicity and they are very satisfied with this also. I showed them a CMS demo online... HAHAHA.. if they weren't church reps I know they would have said "NO Fin WAY"... but they simply said... "I think we can handle editing the htm".

Ding Ding.. another satisified customer of simplicity by design.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
updating, web, content, text, fileor, other, solution

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] multiple columns, text floats out of area... Best solution? alfandango Web Page Design 7 Apr 17th, 2008 12:00
search file content?? alkingg JavaScript Forum 2 Jun 11th, 2007 13:25
Updating Content jas4 Starting Out 1 May 13th, 2007 14:08
Possible to update content through text files? jwilliams31 Web Page Design 14 Nov 25th, 2006 23:12
Creating a log file (text file) and an XML file using XSL kdelacruz Other Programming Languages 1 Nov 4th, 2006 21:12


All times are GMT. The time now is 08:06.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42