update your sites

Discussion in 'HTML & Website Design' started by dxdx, Jan 15, 2005.

  1. #1
    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 :)
     
    dxdx, Jan 15, 2005 IP
  2. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #2
    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.
     
    Will.Spencer, Jan 15, 2005 IP
  3. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    J.D., Jan 15, 2005 IP
  4. ResaleBroker

    ResaleBroker Active Member

    Messages:
    1,665
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    90
    #4
    Includes and CSS.:)
     
    ResaleBroker, Jan 15, 2005 IP
  5. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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.
     
    J.D., Jan 15, 2005 IP
  6. dxdx

    dxdx Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    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.
     
    dxdx, Jan 16, 2005 IP
  7. dxdx

    dxdx Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    How about CMS? Do you use any?

    This is help you to manage your website?
     
    dxdx, Jan 16, 2005 IP
  8. misohoni

    misohoni Notable Member

    Messages:
    1,717
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    200
    #8
    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.
     
    misohoni, Jan 16, 2005 IP
  9. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #9
    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.
     
    J.D., Jan 16, 2005 IP
  10. phrozen_ra

    phrozen_ra Peon

    Messages:
    147
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I use PHP, and a MySQL database....
     
    phrozen_ra, Jan 16, 2005 IP
  11. dxdx

    dxdx Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Thanks for the link.
    I use HTML...
     
    dxdx, Jan 17, 2005 IP
  12. dxdx

    dxdx Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Can you tell me what the .dwt templates is? :confused:

    What CMS system you prefer?
     
    dxdx, Jan 17, 2005 IP
  13. SEbasic

    SEbasic Peon

    Messages:
    6,317
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #13
    A .dwt template is a DreamWeaver Template...
     
    SEbasic, Jan 17, 2005 IP
  14. mrpaisa

    mrpaisa Guest

    Messages:
    741
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    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....
     
    mrpaisa, Jan 14, 2010 IP