1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Alternatives to Templates

Discussion in 'CSS' started by jordan8201, Dec 22, 2005.

  1. #1
    Hi, I am wondering what alternatives there are to using templates in Dreamweaver. I have used them, but I am not crazy about them. If I decide to change an item in a list menu that is on every page for instance, how can I update every page without using a template or frame? Thanks!

    Jedidiah
     
    jordan8201, Dec 22, 2005 IP
  2. JMonster

    JMonster Well-Known Member

    Messages:
    14
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #2
    Use server-side includes to include your "templated" information. Always include your header, footer, nav so its only one change no matter what.
     
    JMonster, Dec 22, 2005 IP
  3. sfrasier66

    sfrasier66 Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    JMonster is right - use SSIs (server side includes).

    Let's say your menu is:

    <ul class="list">
    <li><a href="rss_1.htm">Blogs Defined</a></li>
    <li><a href="blog_1.htm">Blog Creation Tips</a></li>
    <li><a href="blog_2.htm">Blog Search Engines</a></li>
    <li><a href="blog_3.htm">Tell the World About Your Blog</a></li>
    </ul>

    Put the above lines of code in its own file called nav.htm.

    In the pages that include this small menu, wherever you want the menu to appear, just include this code:

    <!--#include file="nav.htm"-->

    Requirements:
    1) Your web server must support SSIs (most do) and
    2) the extension for every file that is to include the <!--#include file="blognav.htm"--> line must be *.shtml.

    Hope that helps!
     
    sfrasier66, Jan 29, 2006 IP