Hi Everyone! If your site have a lot of content and when you need to make a changes on it (in adsense code for example or update menu etc.) how you do it? What ways do you use to create and update your sites? Do you use CMS or it possible to do it without CMS? I don`t think that you update each of the pages
I use .shtml pages with include files for the header, footer, leftmenu, rightmenu, and centered adspace. Also, some centralized updating occurs in my CSS stylesheet.
Use include directives (all application servers have their own format for includes) in your HTML. For example: <html> <head> <!-- #include file="include/head.inc" --> </head> <body> <!-- #include file="include/page-header.inc" --> <!-- ... your HTML content ... --> <!-- #include file="include/page-footer.inc" --> </body> </html> Code (markup): This way you can change your page layout in a few seconds, literally. The rule of thumb is - if you have two identical pieces of HTML/CSS/code anywhere on your website, you got it wrong J.D.
True, with this in mind - if you have something like this <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" href="my-styles.css"> <style type="text/css">p.this-page-para {...}</style> </head> <body> ... Code (markup): , then the stylesheet is included using HTML syntax (it could also be @import - it doesn't matter). However, the two elements following <head> would be repeating on every page, so they should be put in an included file instead: <head> <!-- #include file="inc/head.inc" --> <style type="text/css">p.this-page-para {...}</style> </head> <body> ... Code (markup): So, again, the rule of thumb is to have every single page contain a bunch of includes and some page-specific content. J.D.
By "Includes" do you mean SSI? I asked that question because I don`t know how to do it and would like to know about what subject I need to read more information.
I use .dwt templates, no need for includes as I find too tricky to put together.... ALso use a CMS system for most of my sites, which I find useful.
All platforms support some form of includes. For example, Apache and IIS support includes in this form: <!--#include virtual="/inc/file.inc" --> Code (markup): You can read more on this here: http://httpd.apache.org/docs-2.0/howto/ssi.html There are other ways, depending on the environment you use (PHP, ASP, JSP, etc). See the thread 8004 for some examples. J.D.
Update to your internal web development templates, style guide, process & such based on the changes you made when update your site to WCAG 2.0 Periodically check if there new techniques & best practices that you want to incorporate into your internal guidance....