dreamweaver version list - library items

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Dreamweaver Training and help » dreamweaver version list - Library items

dreamweaver version list - Library items

resolvedResolved · Low Priority · Version Standard

Simon has attended:
Dreamweaver 8 Introduction course
Access Intermediate course

Library items

I recently started using library items for tables that appear on several pages. I now need to update some of these, but after editing & the library item, I cannot get the pages to update to the new version. I use Modigy > Library > Update Pages but the page stays the same. Also, if I choose the Update Current Page option, I get a message saying "No error occurred". Grateful for your advice. Thanks, Simon

RE: Library items

I also meant to add, that if I click on a library item displayed on a page I get an error saying "filepath/filename was not found" - how can this be? Thanks again, Simon

RE: Library items

It's either not pointing to the correct folder. Or the library items have been moved somewhere?

Check your code to see what the library item filename is. Then check your assets panel to ensure that library item filename exists. It may have been deleted, renamed or moved.

Rich

RE: Library items

Hi Simon,

Hmm, that is interesting.

Have you tried deleting the library item from the page and then reinserting it? It may be it's pointing to an old library item, or not pointing correctly.

If you reinsert the library item and it's still not the 'updated' table you expect, perhaps you are not updating the library item properly.

To update a library item, go to the Assets panel, double click your library item to open it. You should see in the titlebar of dreamweaver you are editing a .lbi file (library file). Make your changes then save as you would save a web page. Close the library item as you would close a web page. Now open it again. Make sure the changes were saved.

If the above doesn't solve any problems, please reply back so I can further assess this problem.

Regards, Rich

RE: Library items

There is something weird going on - I discovered that Dreamweaver had created a new Library folder for the library items (there was already a library folder containing various files & images). I just move the library items into the old library folder and deleted the new library folder. Now if I try to add a new library item I get "Unable to create a folder for library items under the root folder of this site" - hope you can help! Thanks, Simon

RE: Library items

Simon,

Did you originally have a folder in the root of your site called 'library'? If so, that may have confused Dreamweaver, as by default, they store all library items in a root-level folder called 'Library' (with a capital L). And if that folder doesn't exist, Dreamweaver should try to create it.

My first suggestion is to not keep anything else in the /Library folder except Dreamweaver's library files. Use an /asset/image folder for your own images etc.

Just to clarify, library items are .lbi files, which Dreamweaver does NOT upload to your server, rather it keeps these files on your local machine only, and when you update a library file, Dreamweaver goes through every file on your site looking for the tag #BeginLibraryItem. If the library path matches, it will update the content between the tags on your pages with the contents you just saved to your library item.

I've just experimented a bit with Library items and tried to recreate what I think may have happened on your set up.

I created a library item, and Dreamweaver generated a folder, Library, in my site, and put the new .lbi file there. In my assets panel, the library item showed, and the path was /Library/myfirst.lbi. All as expected so far.

I then deleted the Library folder within the Files panel. Dreamweaver warned me that a web page was using that library item, and I wouldn't be able to update it if I deleted it.

I said yes anyway, and Dreamweaver deleted the folder. I went back to the Assets panel, and the library item was still showing. I right clicked in the whitespace of the Assets panel and clicked 'Site refresh'. After a minute, the library item disappeared.

I then created a new folder in my site, library (note lowercase). I created a second library item, and Dreamweaver stored it in the newly created folder, library. The library item appeared in the Assets panel, with the path as "/library/mysecond.lbi".

On the files panel, I then created another folder in my root, called "library2". I moved the library file mysecond.lbi from /library to /library2. Dreamweaver prompted me to 'update all pages that used this library item'. I did this, and Dreamweaver successfully moved mysecond.lbi to /library2, and it also updated my page so that the code looked like this:
<!-- #BeginLibraryItem "/library2/mysecond.lbi" -->

And then looking at the Assets panel, the second library item was still there, but the path had been updated to /library2/mysecond.lbi.

So you can have a library item anywhere you want within your site, because Dreamweaver looks at the code on your page to see where library items are stored.

My suggestions are:

1) Make sure there is only one library folder, and it is called "Library" with capital L - and exists in the ROOT of your site.

2) Remove anything from the /Library folder that isn't a library item. Images, css files etc... move them to a more suitable location such as /asset/image and /asset/css.

3) Wherever a library item appears on your pages, check the code and make sure the correct path is being used. ie. if the path in your code is:
<!-- #BeginLibraryItem "/libraries/mysecond.lbi" -->
but you are storing library files in /Library then update your web page code to be
<!-- #BeginLibraryItem "/Library/mysecond.lbi" -->

Check for spelling of Library (eg. make sure it's not libary or some other wrong spelling).

As far as the message 'unable to create a folder for library items under the root folder of this site' - can you yourself create a Library folder? Right click the root folder (this will have "Site -" at the start) and choose "New Folder".

If you can't do this, then you might not have the correct permissions to create folders. Get them!

Regards, Rich

RE: Library items

Rich - Thanks very much for your help & extensive advice with this problem - now seems to be sorted!

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Dreamweaver tip:

JumpMenu in new window

When inserting a jumpmenu to a page, the only option available for 'open in' is usually 'main window'. There would be other options available if the page was a frameset.

To change the jumpmenu to open in a new window, change the target parameter of the selectbox in your code to 'window.open()'.

eg.

<select name="menu1" onChange="MM_jumpMenu('window.open()',this,0)">


source:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16166& ;sliceId=1

View all Dreamweaver hints and tips


Server loaded in 0.09 secs.