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

Similar Messages

  • SoCo - Replace with Catalog Item SC: CATALOGID field not updated

    Hi All:
    We are in SRM 7.0 and ECC 6 Classic Scenario
    In our PDP business scenario, PReq's from ECC goes to SoCo and we replace some requirements with Catalog Item. The issue for our compliance reporting the SC
    table:BBP_PDIGP
    field: CATALOGID
    is not getting updated.
    Do we need a BADI to this work or this is a bug?
    Any input is appreciated.
    Thanks,
    Mike

    Any changes you made to the SC in sourcing cockpit will not be saved to the SC tables. This is standard SRM behavior. You may have to write a code in custom programi to save the data back to SC table.
    Regards,
    Jagadish

  • Some items for podcast feed not updating on itunes

    Hey guys,
    Here is my podcast feed at podbean and itunes
    http://theflyslip.podbean.com/feed/
    http://itunes.apple.com/au/podcast/theflyslip/id509869184
    1)And here are my questions. I've updated my channel title as 'Armchair Critics' but its not updated on itunes or when I check it from my iphone 4s
    2)When I'm on my iphone and search for my podcast and go to the page it allows me to download individual podcasts it shows the titles of the podcast correctly
    eg Armchair Critics - Ep 4x2 - blah blah blah
    While Downloading the first time on my iphone it shows like this, but as soon as I DL the 2nd one the title goes to being
    1 - the text after Ep 4x2, why is it dropping the Armchair Critics - Ep 4x2? I want it to show like that after downloading and viewing on my music app also(formerly iPod i think didnt have an iphone before the 4s)
    3)When viewing the source of my feed I notice that for my first posts the title tags are showing as
    <title>Armchair Critics - Ep1&#215;1 - Dilshan and Captaincy</title>
    it should be something like
    <title>Armchair Critics - Ep4×2 - Thirimanne and Indians</title>
    with 4x2, is this some sort of syntax issue, and why does it work for the latest ones and not the old ones?
    4)I recently updated my image, its still not updated on itunes or when I check from my iphone, is it cuz the feed needs time to update on itunes?
    5)And in general, when I make a change to the feed, how long does it take for itunes to pick up the change.
    5a)Does the change happen on itunes automatically?
    5b)Do I manually need to update anything? IF so how and where?
    6)Also, it I wanna add more itunes tags in future like for changing date/duration etc..how do and where do I do it?

    Thanks alot for your reply Roger.
    I will reply with comments to my questions based on your reply
    1) The title has sorted it self now on the store but not the image, looks like it has gone to some sort of default podcast image. Is it still updating? I've subscribed on a PC, what does subscribing do exactly ? I thought it would start downloading the podcasts, but nothing happened and I had to manually DL them. Again no image...
    2) The text getting cut off before the x,  eg 4x2 blah blah becoming 2 blah blah on iphone.
    Some background - I added the feed to itunes last  week. Did not look at it until yesterday. And all my titles for the podcast had the 2x1 , 2x2 in them from the start - from when I created the episodes in podbean. I only started updating yesterday (again on podbean) cuz it was not showing up ok on the iPhone. SO should it not have worked from the start ? Or am I missing somehting?
    Do you think the html code for multiplication is causing it to cut off the text before the x ?
    4) As stated above the image is still not visible to me on itunes after subscribing on a PC. What image do you see by the way ? It should be this?
    http://www.uh.edu/uhdistance/frieden/image12.gif
    5 & 6) How do you re-upload the feed ? Since I made the update to the image, do I need to re-upload it to make it work? Is that why its not showing up still ?
    Again thanks for the help. Definitely helpful mate.

  • Line item for header material not updating in COEP table

    Hi all,
    from last few days, I found that   when I do confirmation and GR for process order, system is updating all line ( i.e. components, activity types) but line for header material that is finished goods  or semi finished goods is not updating in COEP table,  I have done GR for order and transferred stock from quality too.
    But still its not updating. What could be the reason for it .
    Thanks
    Vivek Varun

    Hi Krishnendu,
    Thanks for the reply ,  FI document is not getting generated.
    What could be the reason for it, as before it was working fine.
    Thanks
    Vivek Varun

  • Help with Library Items

    How do I change the titles of a couple of pages, eg "Biography" to "About"  and how do I delete some pages?

    This question really has nothing to do with Library items.  And for benefit of those not following other threads, the link to the pages is here -
    http://www.bbcooper.com/film_tv.html
    So - what do you want to cover in this thread: titles, deleting other pages, or Library items?  How about we start with my first suggestion to you in the previous thread -
    In DW's Code view for the film_tv.html page, change this -
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!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">
    to this -
    <!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">
    Save the page.  Make a similar change in any other page in your site containing that XML prolog
    ("<?xml version="1.0" encoding="iso-8859-1"?>"), i.e., delete it.
    Now, to get on with the Library items, in your local site, you will find a file called "main_nav.lbi" in the Library items folder.  Open it in DW. Again, in Code view, delete all of this -
    <script language="JavaScript" type="text/javascript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; }  function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} }
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    <body onLoad="MM_preloadImages('../images/navigation/home_f2.gif','../images/navigation/recordings_f2.g if','../images/navigation/theatre_f2.gif','../images/navigation/tv_f2.gif','../images/navi gation/reviews_f2.gif','../images/navigation/contact_f2.gif','../images/navigation/links_f 2.gif','../images/navigation/biog_f2.gif')">
    so that the library item's code looks begins like this -
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <table width="800" border="0" cellspacing="0" cellpadding="0">
      <tr align="left" valign="top">
    Save that Library item and allow DW to update all pages.
    Now that you have done that, say more about your other questions please.

  • No Behaviors with Library Items?

    Created a library item and wanted to insert rollover images
    for the items
    but the behaviors menu is greyed out. Can you not use
    behaviors on library
    items? Do I have to delete the asset from the library, rework
    the .html
    file, and then recreate the library item?

    > Can you not use behaviors on library items? Do I have to
    delete the asset
    > from the library, rework the .html file, and then
    recreate the library
    > item?
    That's correct. All behaviors must be applied BEFORE the
    library item is
    created. A well-formed Library item cannot contain
    <html>, <head>, or
    <body> tags, and therefore has no place to put behavior
    javascript or onLoad
    events.
    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
    ==================
    "TxWebdesigner" <[email protected]> wrote
    in message
    news:f2f00h$il4$[email protected]..
    > Created a library item and wanted to insert rollover
    images for the items
    > but the behaviors menu is greyed out. Can you not use
    behaviors on
    > library items? Do I have to delete the asset from the
    library, rework the
    > .html file, and then recreate the library item?
    >

  • Data folder can not be opened in finding " AirPort Time Capsule " The operation can not be completed because the original item for " data" does not exist .

    Hi
    I have a " AirPort Time Capsule " (firmware 7.7.3) When I try to open the data folder in "finder". Then I got the message  " The operation can not be completed because the original item for " data" does not exist". I have a lot of data and I can understand why I get this message?
    Anyone who can help? Thanks..
    Br. Bo

    Get a USB drive of 2TB or more.. assuming your TC is 2TB. Either preformatted Mac or plug into your Mac and format it standard Mac OS Extended Journaled in disk utility.
    Do a full archive of the TC. You do this using airport utility. Do not click the erase disk.. I marked in green.. just the archive.. that is to backup the internal disk to the USB disk. It is not fast.. take it that the process will go at around 40-50GB/hr.
    Once you complete the archive .. it is a direct image of the data on your TC.. you can then plug it into your computer directly.. and then try and open the files you lost.. if you cannot open them.. open disk utility and fix the permissions.
    http://osxdaily.com/2015/01/13/repair-disk-permissions-mac-os-x/
    Or try the methods apple recommends..
    OS X Yosemite: Set permissions for items on your Mac
    It is possible to fix things on the USB drive because it is locally mounted.. but you cannot fix it on TC which is network drive.

  • I have created a form that contains fields with default text for a user to update/personalize.  Is there a way to style the text so I can quickly identify changes to default text in a field?

    I have created a form that contains fields with default text for a user to update/personalize.  Is there a way to style the text so I can quickly identify changes to default text in a field?

    George - Thanks you so much!  Actually, i'd love for the text color to be red font color.  Could you send me the script for that? And I assume I just copy and paste the script into the field properties (see screenshot)?
    thanks again!
    Seth

  • After I sync with iTunes my iPad Calendar is not updated from my computer where I keep my dates on Abacus. It used to do this. What's wrong?

    After I snync with iTunes my iPad Calendar is not updated from my computer where I keep my dates in Abacus. It used to do this.

    Follow the instructions of tt2 in: https://discussions.apple.com/thread/5822086

  • My Iphone4 will not back up, there for I can not update without losing everything. I tunes tells me something is currupt and can not back up.

    My I phone 4 will not back up to my computer, i tunes says somethinig is currupt.. there for I can not update my phone to the newest software so I have the original, a year and a half, and it is causing me issues. I dont want to update without backing up and lose everything!?

    What does it say is corrupt?
    What have you tried?

  • 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>

  • 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.
    >

  • Working with library items

    This question was posted in response to the following article: http://help.adobe.com/en_US/dreamweaver/cs/using/WSc78c5058ca073340dcda9110b1f693f21-7e49a .html

    Personally, I don't like library items as any changes need to be applied to the document the library item is used in, then each document that uses it needs to be uploaded to the live server, and you might just miss a file or two that uses it leaving you with inconsistencies across your site.
    My preference is to use a server side include (SSI) file which are for all intents and purposes, the same thing, but when you update it, you simply upload that one file and it automatically populates the changes across your site whereever it is used on all pages that use it. Much simpler and cleaner.
    The only drawback is that you need to be using php, asp etc rather than html... or atleast that's the case in my experience.

  • Active Content solution with Library items

    Does anyone know how I can get Adobe's Active Content
    solution (the Multiple Occurrences one) to work with Dreamweaver
    Library items?
    It works fine for inline <object> tags, but when pages
    include Library items (which have the same solution applied to
    them) it doesn't apply the fix to these items.
    Thanks.

    yeah, its annoying. i just made a suggestion for a ¨purge¨ command in the ideas section.
    i´ve managed to clean my library, had to delete one by one though and it took forever.

  • Not fast and with much bugs for navigation

    i have much problem with lion. surf on internet is very slow; i don't like it and hope for new upgrade!!!!

    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

Maybe you are looking for

  • Unable to delete request from write-optimized DSO (Error during rollback)

    Hi Gurus, I am trying to delete a delta request from a Write-Optimized DSO. This request was uploaded with a DTP from another Write-optimized DSO. The actual overall status of the request is RED and the description of that status is now: 'Error durin

  • Unable to sort table

    Hi all I have created an advance table and using multiple selection.I set Sort Allowed property 'Yes' for every column in property inspector. But when I clicked on cloumn it throws a warning "The table cannot be sorted because it has pending changes

  • After adding twitter account I can no longer see my contacts

    I added my twitter account and can no longer see any of my contacts in Address Book or send emails to address book entries. Removing the account brings all address book entries back.

  • Apple id no longer exists

    Some of the ipads that were purchased 2 years ago were originally set up with an Apple ID that no longer exists.  I am trying to restore one of these ipads, as a student has accidentally created a passcode that no one can figure out!  I cannot restor

  • Suddenly the sqlserver express service can't start (2005).

    Hi. My sql server express work well but suddenly stop to run. It can connect to the remote database ok but to my local database can not create a connection. On sql log I see: 2013-12-27 16:12:47.67 Server      Microsoft SQL Server 2005 - 9.00.1399.06