I am creating my latest site in straight up HTML/CSS instead of using a script (wordpress, phpbb3, etc). I created the site, very basic, heres a test: http://luongonetwork.com/test/ So how should I go about updating? Lets say I want to add a link to the navbar down the road, I will have SO many god damn pages I will have to go through, adding the link the navbar. People tell me NOT to use Dreamweavers Template system. And im not really sure how to implement a CMS in with this. So whats the best way to go about editing my website?
Well, I suggest to use php instead of html even for basic simple websites, since you may include the commonly used design snippets, like navigation bar, header and footer. I think this is a very good practice enabling a very easy update method of the site.
So basically I can insert a line of PHP into my HTML saying "put the navbar here". And when I update a link, I just update the navbar.php file? Do you have any good tutorials or know of any?
Hello Well you just can't use php in .html files directly..instead if you have apache server here is a trick which can help you use php inside the html files,otherwise you would have to rename all your html files to .php... Here is the trick Go to your WWW root, usually it looks like this - path: /home/username/public_html Look for the file named .htaccess. If it's not there, create a blank page using NotePad or Dreamweaver and save it as .htaccess Now edit this file by adding the following lines: code: RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html Save and close the .htaccess file. Upload it to your webserver (to your WWW root) and that's it! Now you can edit your html page where you want to include the php file <?php include("navbar.php"); ?> And you can edit the navbar.php to include for links either from database or any logic... Hope that helps.. Well if you want a dynamic site and dynamic content ,i would suggest you to switch to php completely... Regards
I think this tutorial explains the idea http://tutorialblog.org/php-includes-for-rapid-web-design/ Thanks