SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    May 2001
    Location
    East Harlem, Spanish Harlem, El Barrio
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Xara Webstyle 3 and Dreamweaver 4

    I just purchased Xara Webstyle 3 and am using it along with Macromedia Dreamweaver 4.0. Inserting a navbar is easy, but I am begining to suspect that I will have to open each and every page on my site (over 300 htm files) to insert this menu in a very tedious way. As oppose to somehow making my navbar a library item and just inserting the library item in each page.

    The Xara way would have me use the insert-Xara....etc opening up the Xara Webstyle application (intergrated with Dreamweaver), picking my navbar among many, and then saving it to where it already exists in my web site's folder. In other words, I will be saving the same navbar over 300 times. The navbar does not work in the library as a library item. Anyone know a way around this problem?

  2. #2
    SitePoint Wizard silver trophy TheOriginalH's Avatar
    Join Date
    Aug 2000
    Location
    Thailand
    Posts
    4,810
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You could use search and replace across the entire site if you already have a common line of code where the navbar is to be placed. Alternatively, you will have to either set up a template with the navbar set up as a non-editable region, or look at SSI or another server side technology to include a common header.
    ~The Artist Latterly Known as Crazy Hamster~
    922ee590a26bd62eb9b33cf2877a00df
    Currently delving into Django, GIT & CentOS

  3. #3
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I really recommend doing an include with PHP (if you can). Put that in one file and yeah, you'll have to go through 300 pages to put the include script in there, but then once it's done, you only have to change one file to make any changes in the future.

    PHP Code:
    <?php
    include("navbar.htm");
    ?>
    Sketch
    Aaron Brazell
    Technosailor



  4. #4
    Proud Mac User templates911's Avatar
    Join Date
    Jul 2002
    Location
    Middle of Nowhere
    Posts
    652
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I agree with Sketch. Using php header and footer files are a great way to save time.

  5. #5
    SitePoint Member
    Join Date
    May 2001
    Location
    East Harlem, Spanish Harlem, El Barrio
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your replies. I didn't have to use php as
    I figured out how to use the menubar as a library item.
    I do program in php, but I figured it out just in time not
    to have to use it. Again, thanks.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •