Click to See Complete Forum and Search --> : same content throughout pages


violinssoundcoo
05-26-2010, 07:40 AM
Hi. I'm designing a web site for a client who wants to be able to edit what I've done in Dreamweaver. I have never used it and just use html, css, and javascript. Is there any way to have the same content displayed on every page without doing any server-side code? I would like for the client to be able to change the text in one place and have it change on every page. Thanks.

Major Payne
05-27-2010, 06:46 PM
Server Side Includes are the best way to go. You can use the PHP method or the easier way if you don't like PHP. The alternative for allowing someone else to manage content is to use a Content Management System (CMS).

Free Content Management Systems:

http://www.pligg.com/
http://drupal.org/
http://opensourcecms.com/
http://www.joomla.org/
http://www.opensourcecms.com/

File Thingie?(small web-based file manager written in PHP. It is intended for those who need to give others access to a part of their server's file system when FTP is not practical): http://www.solitude.dk/filethingie/

tirna
05-27-2010, 06:53 PM
.........Is there any way to have the same content displayed on every page without doing any server-side code?..............

If you are limited to client-side only, then one way to do it is to put the 'common' content's markup into a string in a javascript function and then call the function to ouput the string wherever you like on any page on the web site.