Library items in DWT templates

I have setup a dynamic menu and created a library item from
it. When I insert it into a new document (or update the library
item) the urls within it keep getting the prefix /library/ added
and so don't work:
original menu
===========
<div id="lhsidemenu">
<ul>
<?php
require_once('Connections/ecommercetemplate_523.php'); ?>
<?php
mysql_select_db($database_ecommercetemplate_523,
$ecommercetemplate_523);
$query_categorymenu = "SELECT sectionID, sectionName FROM
sections ORDER BY sectionName ASC";
$categorymenu = mysql_query($query_categorymenu,
$ecommercetemplate_523) or die(mysql_error());
$row_categorymenu = mysql_fetch_assoc($categorymenu);
$totalRows_categorymenu = mysql_num_rows($categorymenu);
?>
<?php do { ?>
<li><a href="products.php?cat=<?php echo
$row_categorymenu['sectionID']; ?>" ><?php echo
ucwords($row_categorymenu['sectionName']);
?></a></li>
<?php } while ($row_categorymenu =
mysql_fetch_assoc($categorymenu)); ?>
<?php
mysql_free_result($categorymenu);
?>
</ul></div>
Menu after becomin a library item
==========================
<!-- #BeginLibraryItem "/library/categorymenu.lbi" -->
<div id="lhsidemenu">
<ul>
<?php require_once('
library/Connections/ecommercetemplate_523.php'); ?>
<?php
mysql_select_db($database_ecommercetemplate_523,
$ecommercetemplate_523);
$query_categorymenu = "SELECT sectionID, sectionName FROM
sections ORDER BY sectionName ASC";
$categorymenu = mysql_query($query_categorymenu,
$ecommercetemplate_523) or die(mysql_error());
$row_categorymenu = mysql_fetch_assoc($categorymenu);
$totalRows_categorymenu = mysql_num_rows($categorymenu);
?>
<?php do { ?>
<li><a href="
library/products.php?cat=<?php echo
$row_categorymenu['sectionID']; ?>" ><?php echo
ucwords($row_categorymenu['sectionName']);
?></a></li>
<?php } while ($row_categorymenu =
mysql_fetch_assoc($categorymenu)); ?>
<?php
mysql_free_result($categorymenu);
?>
</ul></div><!-- #EndLibraryItem -->
doe anyone know how to resolve this? thanks

You are placing this library item into an editable region of
the child page?
Why do this instead of just using an include?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"bikeman01" <[email protected]> wrote in
message
news:[email protected]...
>I have setup a dynamic menu and created a library item
from it. When I
>insert
> it into a new document (or update the library item) the
urls within it
> keep
> getting the prefix /library/ added and so don't work:
>
> original menu
> ===========
>
> <div id="lhsidemenu">
>
> <?php
require_once('Connections/ecommercetemplate_523.php'); ?>
> <?php
> mysql_select_db($database_ecommercetemplate_523,
$ecommercetemplate_523);
> $query_categorymenu = "SELECT sectionID, sectionName
FROM sections ORDER
> BY
> sectionName ASC";
> $categorymenu = mysql_query($query_categorymenu,
$ecommercetemplate_523)
> or
> die(mysql_error());
> $row_categorymenu = mysql_fetch_assoc($categorymenu);
> $totalRows_categorymenu = mysql_num_rows($categorymenu);
> ?>
> <?php do { ?>
>
<a href="products.php?cat=<?php echo
> $row_categorymenu['sectionID']; ?>" ><?php echo
> ucwords($row_categorymenu['sectionName']);
?></a></li>
> <?php } while ($row_categorymenu =
> mysql_fetch_assoc($categorymenu)); ?>
> <?php
> mysql_free_result($categorymenu);
> ?>
>
</div>
>
> Menu after becomin a library item
> ==========================
> <!-- #BeginLibraryItem "/library/categorymenu.lbi"
-->
> <div id="lhsidemenu">
>
> <?php
> require_once('
library/Connections/ecommercetemplate_523.php'); ?>
> <?php
> mysql_select_db($database_ecommercetemplate_523,
$ecommercetemplate_523);
> $query_categorymenu = "SELECT sectionID, sectionName
FROM sections ORDER
> BY
> sectionName ASC";
> $categorymenu = mysql_query($query_categorymenu,
$ecommercetemplate_523)
> or
> die(mysql_error());
> $row_categorymenu = mysql_fetch_assoc($categorymenu);
> $totalRows_categorymenu = mysql_num_rows($categorymenu);
> ?>
> <?php do { ?>
>
<a href="
library/products.php?cat=<?php echo
> $row_categorymenu['sectionID']; ?>" ><?php echo
> ucwords($row_categorymenu['sectionName']);
?></a></li>
> <?php } while ($row_categorymenu =
> mysql_fetch_assoc($categorymenu)); ?>
> <?php
> mysql_free_result($categorymenu);
> ?>
>
</div><!-- #EndLibraryItem -->
>
>
> doe anyone know how to resolve this? thanks
>

Similar Messages

  • Using library items in templates

    I'm trying to use library items in a template but Dreamweaver
    8 keeps on adding extra
    extra closing tags. Is there some trick to using them?

    Why are you using Library items in a template?
    Can you show me the Library item, and an example of the extra
    closing tags?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "lynnkuh" <[email protected]> wrote in
    message
    news:eb0cnh$lno$[email protected]..
    > I'm trying to use library items in a template but
    Dreamweaver 8 keeps on
    > adding extra
    > extra closing tags. Is there some trick to using them?

  • DWT Library item won't update if there is an HTML error?

    I'm updating a DWT site for a client and I have found from time to time the library items stop updating and I believe this happens when there is an HTML error.
    Example: I omitted a </ul> tag by mistake at some point recently and updated the pages in the site. Now that I've discovered the error I fixed it, but when I update the pages the dialog goes through each page but makes no change. I've found I can fix it by opening the pages in an external editor and fixing the code manually, but this seems to defeat the purpose of the templates.
    I've tried researching this but I haven't found anyone else reporting this or any possible solutions. Is this a quirk on my system or has anyone else experienced this?
    Dreamweaver CC 13.1 Build 6443
    (Oh it's so frustrating that clicking anywhere closes the About dialog. I tried to copy the version number at least 4 times before I slowed myself down and remembered it.)

    Thanks for that. I agree with the 'it should still work'. The 'libraryitem' tags are still there and the library code is yellowed out. I just wondered if there was a quick fix to reinstate the updating.
    Since I posted this, I have discovered that the update works on files that are OPEN in DW. It's only the site files not open. I have opened all the .aspx files and run a library change successfully.
    HOWEVER, if I close those files and update again, they still don't do it. I now suspect that there is a hidden DW file, like the lock files on the server, or perhaps a component of the .lbi file, that lists the files to update.

  • Error message with library item in template

    I'm not sure if this is a PM issue or a DWCS3 issue. The only
    way to find out is to ask.
    I have gone through the process of creating a a library item
    of a
    PopMagic menu according the the video provided by P7. Works
    well.
    Then I added the library item to an existing DWCS3 template
    and saved
    it. When I attempt to create "new from template" page from
    the template
    menu, I get this error message
    http://www.jdcdemo.com/blf/error.html
    If I do the same with a template without the menu, the
    error message goes away.
    If I create a page with from a template where I've left an
    editable
    region for the menu and then insert the menu and save the
    page, I also
    get the error message, but the page seems to work ok.
    Since I can't create a new page with the template, I opened
    it and saved it as a page:
    http://www.jdcdemo.com/baim/BLF8/error-message.html
    What is going on here and is there a fix?
    Thanks,
    Joe

    Look at your code. Count <body> tags. How many do you
    get? Yeah - that's
    wrong. You didn't follow the video....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "camelbreath" <[email protected]> wrote in
    message
    news:g680gh$3c$[email protected]..
    > I'm not sure if this is a PM issue or a DWCS3 issue. The
    only way to find
    > out
    > is to ask.
    > I have gone through the process of creating a a library
    item of a
    > PopMagic menu according the the video provided by P7.
    Works well.
    > Then I added the library item to an existing DWCS3
    template and saved
    > it. When I attempt to create "new from template" page
    from the template
    > menu, I get this error message
    >
    >
    http://www.jdcdemo.com/blf/error.html
    >
    > If I do the same with a template without the menu, the
    > error message goes away.
    >
    > If I create a page with from a template where I've left
    an editable
    > region for the menu and then insert the menu and save
    the page, I also
    > get the error message, but the page seems to work ok.
    >
    > Since I can't create a new page with the template, I
    opened it and saved
    > it as
    > a page:
    >
    >
    http://www.jdcdemo.com/baim/BLF8/error-message.html
    >
    > What is going on here and is there a fix?
    >
    > Thanks,
    > Joe
    >

  • Help: Using templates with Library items

    Hey there dreamweaver users
    Just a quick question it might sound dumb but im new to the dreamweaver world and would be greatful if you could answer this question i have.
    I have made a template for my site and i wish to update all the child pages with a library item i have inserted into the main template,
    ive put it into the main template as a footer navigation links and then left dreamweaver to update all my other child pages with this library item.
    the thing is it never works am i doing something wrong ? really could do with some help.
    Thank you :]

    I only have one Template and this is it
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Caribe Travel Services</title>
    <!-- TemplateEndEditable -->
    <link href="../caribe_styles.css" rel="stylesheet" type="text/css" />
    <link href="../print.css" rel="stylesheet" type="text/css" media="print" />
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>
    <body>
    <div id="container">
      <div id="header"><a href="../starter.html"><img src="../assets/images/logo.jpg" alt="Caribe Travel Services" name="logo" width="213" height="144" id="logo" /></a></div>
      <div id="sidebar">
        <ul class="nav">
          <li><a href="../packages/air.htm">Air Packages</a></li>
          <li><a href="../packages/cruises.htm">Cruises</a></li>
          <li><a href="../packages/inclusive.htm">All Inclusive</a></li>
          <li><a href="../packages/resorts.htm">Resorts</a></li>
          <li><a href="../packages/index.htm">Contact Us</a></li>
        </ul>
        <div class="sideContent"><!-- TemplateBeginEditable name="sideContent" -->
          <h3>Heading 3 here</h3>
          <p>side content here</p>
        <!-- TemplateEndEditable --></div>
      </div>
      <div id="mainContent"><!-- TemplateBeginEditable name="mainContent" -->
        <h1>Heading 1 Here</h1>
        <p>main content here</p>
        <h2>Heading 2 </h2>
      <!-- TemplateEndEditable --></div>
      <div id="footer"><!-- TemplateBeginEditable name="navLinks" --><!-- #BeginLibraryItem "/Library/altNav.lbi" -->
        <ul>
          <li><a href="../index.htm">Home</a></li>
          <li><a href="../packages/index.htm">Packages</a></li>
          <li><a href="../specials/index.htm"> Specials</a></li>
          <li><a href="../galleries/index.htm">Galleries</a></li>
          <li><a href="../testimonials/index.htm">Maps</a></li>
          <li><a href="../testimonials/index.htm">Testimonials</a></li>
          <li><a href="../newsletter/index.htm">Newsletter</a></li>
          <li><a href="../contact.htm">Contact</a></li>
        </ul>
      <!-- #EndLibraryItem --><!-- TemplateEndEditable --></div>
      <!-- end .footer -->
      <!-- end .container -->
    </div>
    </body>
    </html>

  • Template Expressions in Library Items?

    Hi All,
    The quick question is this: can template expressions be made
    to work inside library items?
    Here’s the situation…
    The page:
    http://www.fretbank.com/basics/intervals/index.html
    I have a 3-tier template structure in place – 1-Root,
    2-General Page Structure, 3-Topic Categories.
    If you look at the page, I have buttons below the header that
    point to different topics. Each topic has several pages. All of the
    pages from each topic are child-pages from a specific Tier-3
    template.
    The buttons use template parameters/expressions on the Tier 3
    temp. to determine the state of the button.
    I currently have to copy the code for the button nav into
    each topics template and any changes have to be made in each
    template. I am going to be adding many more topics and want to find
    a shortcut. I guess I could make a 4th template tier and have each
    of the category templates be children of that, but I’m hoping
    to avoid this. It would be easiest to be able to make a library
    item and paste it where I need.
    I thought about using SSI’s but that wouldn’t
    work with the expressions. Any other suggestions?
    Thanks,
    Troy
    here's the code if it helps:

    > Is having the link outside the div a problem in older
    browsers?
    It's invalid HTML. That's enough for me. And I suspect it
    would be a
    problem somewhere, as you are trying to make the entire
    <div> tag a link.
    > This allows me to only have to change each of these nav.
    elements on one
    > page.
    I would opt for a single template structured so that changes
    to CSS could
    'specify' the particular section layout. Then I would choose
    server-side
    includes for the navigation elements, and place them into
    strategically
    placed editable regions of the single template, depending on
    which section
    you are needing to navigate.
    Having only a single template is not only possible, it's MUCH
    simpler than
    nesting them.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Fret Man" <[email protected]> wrote in
    message
    news:[email protected]...
    > Thanks for the reply Murray.
    >
    > A couple clarifications and questions. Sorry for the
    length, but I felt it
    > was
    > better to be clear than concise.
    >
    > I am using nested templates.
    >
    > Since I posted the topic, I have changed my structure a
    bit, trying to
    > find a
    > balance between flexibility and work load.
    >
    > I have a root template with has headers and common
    includes.
    >
    > From the root template I nest multiple MAIN CATEGORY
    templates for primary
    > areas of the site. These templates contain the nav
    buttons just below the
    > header.
    >
    > From the MAIN CATEGORY temps I nest several SUB CATEGORY
    templates for
    > each
    > topic in the category, which contain the code for the
    "Quick Nav" box at
    > the
    > bottom of the page.
    >
    > The individual pages of the site are then built from the
    sub category
    > pages.
    > The reason for all of the nesting is this: The MAIN
    CATEGORY temps contain
    > the
    > code for the nav buttons and are built using temp.
    expressions that look
    > to a
    > main category param on each of the sub category pages.
    Depending on the
    > param., the button that corresonds to which Main
    Category you are in will
    > be
    > black (via CSS class)
    >
    > One the sub cat. temps the Quick nav link relative to
    which page you are
    > on
    > will be black (also via CSS class)
    >
    > This allows me to only have to change each of these nav.
    elements on one
    > page.
    > All of the different MAIN CAT. temps allow me to focus
    advertising based
    > on
    > the subject. Maybe there is a better way to populate the
    ads to different
    > categories that I am not aware of? Is there a way to
    have the button/links
    > reflect the category/page you are on using only CSS? I
    don't want to have
    > to
    > copy and paste changes to multiple pages when the
    nav/topics change.
    >
    > ****
    > I put the <a> tags inside the <div> tags,
    based on multiple people telling
    > me
    > that I shouldn't do it the other way around. I hadn't
    encountered any
    > problems
    > and liked that the whole button became a link. Is having
    the link outside
    > the
    > div a problem in older browsers? I tested it this way in
    IE7, Firefox2.0,
    > Safari, and Opera, and it worked.
    >
    >

  • Spry Menu w/ templates or library items

    I LOVE the new spry menu, but I'm frustrated with how to
    insert an existing menu onto subsequent pages. I tried to add the
    menu to the library but that didn't seem to work. Should I use a
    template instead? I can't seem to find documentation on this...am I
    missing something? Any advice?

    Not sure what that is...tried to look it up in the help
    file...is it this?
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1",
    {imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
    imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    If so, how do I attach it? Also, how do I edit once it's a
    library item? I seem to lose that lovely spry interface in the
    property manager.
    If there is any documentation that you could point me to I'd
    be grateful. I'm afraid I'm not finding it.

  • Templates & Library items - best practice

    I've been having a bit of a heated discussion about how
    templates and library items should be used on medium to large
    websites.
    I'm of the opinion that you should have 1 template (or as few
    as possible) and any differences be managed with Library items.
    My colleague's argument is you should have a different
    template for each section, so for example 1 for the news, 1 for the
    features section (for magazine sites) so that if you have a banner
    section wide you change that template, as opposed to the way I'm
    used to which would be 1 template with multiple library items in
    the editable regions of the template, my reasoning for this is the
    large amount of html used for each template (like rollovers) can
    become inconsistent when there's more than one template. Like if
    you change something site wide you have to remember to change all
    of the templates, if you do this with a simple copy past DW can
    still make corrupt code if you use multiple templates.
    So basically I was wondering if there was a standard or best
    practice way of doing this.
    Thanks

    Your colleague is mistaken IN MY OPINION. I think you are on
    the right
    track *unless* your section pages are *SO* different in
    layout that you
    cannot conveniently include all of the
    alterations/permutations in a single
    template page. Further, my current workflow is to rely
    heavily on
    server-side includes within template pages, as described here
    Templates do make your life much easier. I use the following
    scheme....
    First, I mentally separate the page layout into three
    sections:
    1. Stuff that will not change for the life of the site (i.e.,
    the basic
    structural elements)
    2. Stuff that *could* change from time to time (e.g.,
    navigation elements,
    burst advertisements, section-specific navigation, etc.)
    3. Stuff that *will* change from one page to the next
    Then I create a template containing all class1 elements. Next
    I create
    server-side include files containing all class 2 elements and
    place them on
    the template as needed. Note - some of the class 2 elements
    may be
    "section-specific elements", and their placement on the
    template will be
    subject to the next item. Finally, I insert editable regions
    to cover the
    class 3 items, INCLUDING the section-specific navigation.
    This allows me to just cookie-cut the rest of the site. I
    estimate that
    even for fairly large sites, about 80% of my work goes into
    planning and
    creating this template file.
    For what it's worth, I never use Library items....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "tefnut" <[email protected]> wrote in
    message
    news:[email protected]...
    > I've been having a bit of a heated discussion about how
    templates and
    > library
    > items should be used on medium to large websites.
    > I'm of the opinion that you should have 1 template (or
    as few as possible)
    > and
    > any differences be managed with Library items.
    > My colleague's argument is you should have a different
    template for each
    > section, so for example 1 for the news, 1 for the
    features section (for
    > magazine sites) so that if you have a banner section
    wide you change that
    > template, as opposed to the way I'm used to which would
    be 1 template with
    > multiple library items in the editable regions of the
    template, my
    > reasoning
    > for this is the large amount of html used for each
    template (like
    > rollovers)
    > can become inconsistent when there's more than one
    template. Like if you
    > change
    > something site wide you have to remember to change all
    of the templates,
    > if you
    > do this with a simple copy past DW can still make
    corrupt code if you use
    > multiple templates.
    >
    > So basically I was wondering if there was a standard or
    best practice way
    > of
    > doing this.
    >
    > Thanks
    >

  • Library items and templates

    i have created a template and on the side i have a list of
    links that i change regularly (not in editable region). I dont want
    to upload all my files everytime i change a link in the list, so i
    thought a library item would be the go. However, when i update the
    file it changes the template and it updates every file, that means
    i have to upload all files. My question is, should i put the
    library item in an editable region on its own, or what.
    thanks

    > My question is, should i put
    > the library item in an editable region on its own, or
    what.
    Whether you use a Library item or just a Template for this
    will not affect
    the workflow of -
    1. Make a change
    2. Upload all changed pages
    What you would want to use if you don't want to have to do
    that would be a
    server-side include (SSI) (use DW's F1 help to read about
    them). In this
    case, your navigation would be in the SSI fragment file,
    which would be
    either in an editable or a non-editable region of the
    template (use the
    editable region approach in the event that you might want to
    have different
    navigation elements on different pages, and the non-editable
    region approach
    if you will not have different navigation elements). Then,
    when you might
    want to change navigation, just make the change to the
    fragment file, upload
    it, and magically all pages reflect the change.
    When you use server-side includes, there are at least two
    files involved:
    1. The parent file
    2. The include file
    The parent file (the one RECEIVING the included file's code)
    must be named
    with a file extension that triggers a server parse to find
    the include
    directives (e.g., *.shtm(l), *.asp, *.php, etc.). Of course,
    the extension
    would have to match the server models supported by a) your
    site definition,
    and b) the hosting server. The include file (the code
    fragment file) may be
    named with any extension you desire (we joke here about
    naming them with the
    'monkeybutt' extension, since that extension name is
    irrelevant to the
    function of the file itself). HOWEVER, if the include file is
    named with an
    extension that DW doesn't recognize, then you will not get a
    Design view
    option when the file is opened.
    For this reason, it's best to just name your include files
    with the *.htm(l)
    extension. Alternatively, if you *really* like
    '*.monkeybutt', you can add
    this extension to the list of file extensions that DW
    recognizes -
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16410&sliceId=1
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "deutschy" <[email protected]> wrote in
    message
    news:[email protected]...
    >i have created a template and on the side i have a list
    of links that i
    >change
    > regularly (not in editable region). I dont want to
    upload all my files
    > everytime i change a link in the list, so i thought a
    library item would
    > be the
    > go. However, when i update the file it changes the
    template and it updates
    > every file, that means i have to upload all files. My
    question is, should
    > i put
    > the library item in an editable region on its own, or
    what.
    > thanks
    >

  • How to make DW see Templates and Library items

    I imported a site from another computer. Now it cannot see templates as templates or library items as library items. I am downloading the files from the server. The templates folder is there, but they are not showing up in the assets panel. They are also not updating when I save them.
    How do I make DW see the templates and library items? It is a large site and I really don't want to have to recreate everything.

    I just had this problem and this is how I solved it:
    1. Create a brand new template (can be empty) and save it
    2. See where dreamweaver puts it in the files panel(more than likely will create a new template folder)
    3. Completely move all templates from your previous template folder to the new one DW just created.
    4. Voila - now check you templates under assets.
    Caution:
    1. First only copy one template to the new folder and check assets to test this theory before deleting the ones in the previous folder (if it works do be sure to delete the others)
    2. To tell if a template actually works, select it then hit delete, if it simply warns you this can't be undone the template is NO GOOD. If it gives you  a  list of links you will destroy THAT'S THE ONE YOU WANT TO KEEP.  The templates in the new folder should give you a list of links, any templates any where else will just give you a regular delete/warning message.
    Hope this solution works for you, I'm just trying to help.
    Michelle

  • Dreamweaver Stopped asking if I want to update Library Items and Templates

    Hi All,
    Using dreamweaver on a new project.  Set up my Templates and library items and everything was fine - when I changed one a saved it a dialogue popped up and asked me if I wanted to update files.  Suddenly the dialog box has stopped appearing and now I have to instigate it manually by going to modify->templates->update pages which is annoying and more time consuming.
    Why has the automatic dialogue disappeared and how do i get it back?
    Thanks

    Sorry for the late reply.  I'm still having the problem and appreciate the help.  Attached is the requested screen shot.  Everything is in order I think.  Its a big site though and the whole thing won't fit in one screen shot.  What are you looking for specifically?

  • Dreamweaver Teamplate with Library Item for Navigation/Sidebar not updating editable classes

    I have a Dreamweaver Template that contains two Library items. One Library item is my navigation bar, the other is a sidebar that shows different content depending on what page you are on. I'm assigning an editable class "active" to the navigation bar to show you are on a particular page, and also assigning the editable class "active" to the sidebar to reveal a portion of the sidebar with links pertaining to that specific page. The default value for the class is "hidden". So what is happening is when I open a page I have created and "edit" the Library Items in it to edit these classes, it resets resets all the other pages on the site to the default class values. How am I able to use editable classes and Library Items to achieve this kind of functionality? The idea is to only have ONE navigaton bar to update on the site and to only have ONE sidebar item to update. Here is an example of the sidebar and navigation in action so you can see what I'm going for. Notice the green button in the navigation bar (that is a list item with the class "active" which is an editable class in the Library Item, also notice the tan links in the sidebar, that is an unordered list that has an editable class of "active" in the Library Items --- these editable classes reset to their defaults when updating the Library Item on the website).
    http://www.brumleve.org/joe/temp/CAP/mission.html

    In my understanding, whenever you edit the contents of a library item, it will update all other occurances of this library item on the rest of the site. That's "working as designed" as far as I know, unless you break the link by telling it to not update - which kinda defeats the purpose I think.
    But theres another way to do this using template properties, i#ve been using this approach myself a couple of times:
    Write your navigation bar in the template (.dwt) file itself, then select the class= of your first menu item and choose .. (names might be off, I am using a non-English copy of DW): "modify > template > make attribute editable" from the main menu. Do so for all your menu items and name these new template properties something like "item_x_class"
    You'll end up with something like this in your template source:
    <div class="@@(item_1_class)@@">
    and a matching
    <!-- TemplateParam name="item_1_class" type="text" value="active" --> in the header
    Now, on each page, you can set the class within the template properties dialog ("modify > template properties"). If your main menu changes, it won't overwrite your template properties, but still update all pages when you do make a change to the menu.
    If you're using multiple templates for your site, consider nesting templates, so the master template already includes your navbar and all subsequent templates will "inherit" changes to the navbar code (sans the editable class property).
    Hope this helps.. or at least gives you an idea for further experiments..
    Stephan

  • Page persistence indicator and Library item

    What is the best way to create page persistence indicators on
    a
    navigational array using div elements, in which the nav array
    is stored
    as a Library item and stretches across multiple Templates?
    I am trying to follow the instructions as in this article:
    http://www.communitymx.com/content/article.cfm?cid=F1394
    However, this method uses template parameters wherein the
    navigational
    array is stored in the .DWT template file, and not in a
    Library item
    which stretches across Templates as in my situation. I am
    looking for a
    solution which will allow the Library to dynamically create
    the
    persistence indicators.
    Oh, and also the nav array is made up of graphical elements
    (not
    text-based CSS) so the persistence needs to swap out
    individual
    graphical elements for each div.
    Thanks, -CC

    E Michael Brandt wrote:
    >
    >> Here's how you handle that - call the host and ask
    them to server
    >> parse ALL extensions on the site. Most will do this
    (many are set
    >> this way by default).
    >
    > Yep, I've done that in the past. But it may contribute
    in part to what
    > CC is referring to as lost time. Just trying to be
    Solomonic.
    >
    Yes, this is exactly what I'm trying to say.
    When I do a five page static site for a client who I know is
    probably
    going to make changes to universal elements once every year
    (if that) it
    really doesn't matter if I choose Library or SSI. Often I
    will choose
    Library items in this case, simply because they're easy to do
    and I'm
    used to doing things this way. And when I do have updates to
    make?
    Dreamweaver makes it a snap to update those Library items,
    then compare
    the changed files on the server. It can all be done in under
    a minute.
    SSI? Could have used that, too, but to preview the site I
    either have to
    set up a testing server environment or make the include live
    before
    showing the client. And I can't drag and drop the file from
    the desktop
    onto my browser, have to go through Dreamweaver. These may
    not seem like
    big deals (and may seem inefficient to some) but I manage
    between 15-20
    sites all through Dreamweaver, some requiring extensive
    updates, many
    requiring only a few tweaks quarterly, and I can tell you
    that on the
    sites I've built Libraries around, they take me maybe a few
    additional
    minutes longer to update than with the sites I've built with
    SSI. It's
    all about which sites make the most sense to build SSI or
    Libraries around.
    Of course the argument has been made: why not plan better in
    advance to
    use SSI in the first place when it may save you time in the
    future? Good
    point. However, again, the sites I choose to use Library
    items versus
    SSI were usually smaller sites, with no dynamic pages, etc.
    And for
    whatever reason I chose not to rename all my extensions to
    SHTML ...
    didn't want to jump through hoops setting up a testing server
    environment ... or upload everything to FTP everytime I
    changed the
    include file just to preview the one pixel move I made on a
    photo ...
    and the client may see the include file live on his server
    before I am
    ready to demo the whole site, which is on version 4 at this
    point ...
    and now I have to change the path of the include on the
    Template to a
    new one so he doesn't see parts of version 3 ... and I don't
    want to go
    back to my client and ask for additional hours to call the
    client's
    dumb-*** hosting company to set up SSI that should already be
    setup ...
    don't have time to wait three hours for the webhosting
    company to get
    back to me with a "we're working on it" response ... and
    we're already
    overbudget due to that fancy CSS menu I already spent way too
    much time
    on and isn't looking quite right in IE6 still ... and I've
    got to get
    going on four other website updates before 6 PM ... it's now
    5 PM ...
    and I'm probably going to be up all night again.
    Given all of that, I can't see why there appear to be so many
    Library
    hating comments on this thread. Reading through, it would
    appear that
    Library items are utterly useless -- which is just not the
    case. I'm
    surprised at the comments, actually, because the power in
    Dreamweaver
    lies in its ability to make the business of building websites
    easier for
    users with a wide range of skill levels, for almost any kind
    of job.
    Some of its tools (like Libraries) have overlap with SSI
    perhaps to give
    the user as many options as possible depending on
    circumstance. Whether
    one chooses to use Library items or SSI, the results are
    often the same
    in my experience, and I feel Libraries have even saved me
    time in
    situations where includes were simply not the wisest choice.
    Who knows,
    maybe it's because I've grown so used to them over the years
    is why I
    defend them so. But any rate, Libraries at least serve some
    of us well.
    -CC

  • Using CSS instead of or with library item

    I built my site using Dreamweaver 8. I used the design view
    exclusively. I made a navigation bar as a library item. Utilizing
    rollovers, etc. Now I have learned I should build my site utilizing
    CSS and as was pointed out on this forum to me, to learn CSS and
    HTML.
    I am having a brain freeze. The logic escapes me as to how I
    would build a navigation bar and put it on each page as I did
    utilizing the library function before.
    I am sure for all you pro's this is a really dumb and obvious
    thing but I just don't seem to figure out the logic how to do it. I
    am not talking about the CSS for the behaviors such as hover,
    visited, active. This I know how to do. It is just the ability to
    have a properly designed navbar and be able to put it on every page
    I make.
    Murry "ACE" told me not to use AP and the dreaded mm_menus so
    I am trying to figure this out and build a better more code
    efficient site. Mine works but is quite trashy in the code.

    It can be a bit daunting.
    Try going through this tutorial completely. It's a bit out of
    date (using
    an older version of DW), and still covers the use of tables,
    but it's worth
    reinforcing your basic understandings -
    http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html
    Then I would suggest you do this tutorial -
    Taking a Fireworks comp to a CSS-based layout in Dreamweaver
    http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt1.html
    http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt2.html
    Finally, to get a grip on how to manage menus across an
    entire site, use
    DW's F1 help about how to use Templates, and server-side
    includes.
    Templates do make your life much easier. I use the following
    scheme....
    First, I mentally separate the page layout into three
    sections:
    1. Stuff that will not change for the life of the site (i.e.,
    the basic
    structural elements)
    2. Stuff that *could* change from time to time (e.g.,
    navigation elements,
    burst advertisements, section-specific navigation, etc.)
    3. Stuff that *will* change from one page to the next
    Then I create a template containing all class1 elements. Next
    I create
    server-side include files containing all class 2 elements and
    place them on
    the template as needed. Note - some of the class 2 elements
    may be
    "section-specific elements", and their placement on the
    template will be
    subject to the next item. Finally, I insert editable regions
    to cover the
    class 3 items, INCLUDING the section-specific navigation.
    This allows me to just cookie-cut the rest of the site. I
    estimate that
    even for fairly large sites, about 80% of my work goes into
    planning and
    creating this template file.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "craigmini" <[email protected]> wrote in
    message
    news:[email protected]...
    >I built my site using Dreamweaver 8. I used the design
    view exclusively. I
    > made a navigation bar as a library item. Utilizing
    rollovers, etc. Now I
    > have
    > learned I should build my site utilizing CSS and as was
    pointed out on
    > this
    > forum to me, to learn CSS and HTML.
    >
    > I am having a brain freeze. The logic escapes me as to
    how I would build a
    > navigation bar and put it on each page as I did
    utilizing the library
    > function
    > before.
    >
    > I am sure for all you pro's this is a really dumb and
    obvious thing but I
    > just
    > don't seem to figure out the logic how to do it. I am
    not talking about
    > the CSS
    > for the behaviors such as hover, visited, active. This I
    know how to do.
    > It is
    > just the ability to have a properly designed navbar and
    be able to put it
    > on
    > every page I make.
    >
    > Murry "ACE" told me not to use AP and the dreaded
    mm_menus so I am trying
    > to
    > figure this out and build a better more code efficient
    site. Mine works
    > but is
    > quite trashy in the code.
    >

  • How to use a Spry Menu as a Library item?

    Okay, this is my second post; but, with a different title.
    I made a Spry menu for my Home Page. I saved it and a logo
    together as a library item and placed the library item on a second
    page. The links in the menu work when there is no style sheet
    attached for the Spry meny and the menu appears just as text; but,
    as soon as the .css style sheet for the menu is attached to the
    second page, the menu appears correct except the drop down menus do
    not work. I tried adding a link to the Spry Java Script file as it
    is on the home page; still no luck.
    I tried the same with a test file, which I have since
    removed, stored at the same folder as the home page; same problem.
    How are we suposed to make a workable library item with a
    Spry Menu? Surely this is possible, no?
    Here are the two pages I am referring to:
    Good Page:
    http://iculver.com/
    Bad Page:
    http://iculver.com/pages/AboutUs/Personal_info.html

    Apologies - my mistake. You are correct, and my instructions
    were
    incomplete. That other bit is required too.
    > Now, I thought (probably in error) that items after !--
    were comments, but
    > it
    > seems to be required, too. I tried eliminating taht part
    and the menus did
    > not
    > work. I need all of this last part.
    The comments 'hide' the scripting from validators and older
    browsers, but
    it's still recognized as javascript, since the comments occur
    INSIDE a
    <script> tag.
    > these Spry Menus in Libraries easier to use...)
    It's not so hard once you get all the pieces together.
    1. Create the library item as described.
    2. Make sure that each page that is to carry this library
    item has the
    required links in the head (to the CSS and the js files), AND
    in the body.
    Why not use a template instead? That way, all of these links
    are managed
    for you.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "JustBob" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hummm...
    >
    > Now, don't yell at me, okay? I'm a goLive switcher and
    really a graphic
    > designer, not a coder...
    >
    > So, It seems from the above message that I am to
    establish the links to
    > the
    > script and the css file before inserting the library
    item. But, either
    > way,
    > that didn;t do the trick for me. I did find a bit of
    code in one of the
    > pages
    > that seems to be required.
    >
    > It seems I also need to insert this just before the
    close of the body tag:
    >
    > <script type="text/javascript">
    > <!--
    > var MenuBar1 = new Spry.Widget.MenuBar("MenuBar",
    > {imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
    > imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    > //-->
    > </script>
    >
    > Now, I thought (probably in error) that items after !--
    were comments, but
    > it
    > seems to be required, too. I tried eliminating taht part
    and the menus did
    > not
    > work. I need all of this last part.
    >
    > I'm sorry I'm such a dope. I probably did something
    funny when I was
    > styling
    > the menu. (I do hope Adobe can accommodate dopes lime
    me, though, and make
    > these Spry Menus in Libraries easier to use...)
    >
    > Thanks for all of your help! Really!
    >

Maybe you are looking for

  • Usage of  XSLT_TOOL  Transaction

    Hi All I have gone thru previous blogs related to XSLT mappings.In a few of them I could see that there is a mention of XSLT_tool transaction for XSLT-ABAP mapping.. Can anyone please provide me some details as to when this will be used.I mean is it

  • Cannot open different iweb site folder from iweb 8, help?

    Hi I've made 1 site which is my website located on my hard disc. Fine. But I imported (exported folders) another iweb site which was made on another mac butit will not open on my laptop in iweb? How can I open it? I'm sorry if this is a daft question

  • Video tutor "layers"

    Looking for a video tutor that could help me with layers in Elements 8. I did find a few that were not that good.

  • Where to find .AdobePatchFiles

    I'm looking for the hidden .AdobePatchFiles, want to do a clean out.  I've set my mac to show hidden files, but I still can't find it anywhere.  It's not in /Applications/.AdobePatchFiles/ or HD/Users/Home/Applications/.  The only thing in my /Applic

  • Windows 7 (64Bit) Dosnt recognise itouch or any of my other ipods

    Kinda need help its the usb drivers i have a feeling it is anyhow, the computer its self is 2 week old. i havent had any other problem with things like this but i have many new songs i need on my itouch and its just not connection or recognising it o