To use the library element, you must first correctly create a site in DW.
Libraries are designed to make repetitive work faster, easier, and as error-free as possible.
Elements in any webpage, whether text or image, can be specified as library elements.
Library elements can be placed on any page of the same site without re-entering text or inserting images.
You can modify the library file at any time. Edit and save. DW updates the web pages of all applications at the same time. You can specify whether to update a page or all websites.
Database elements can be converted back to non-database elements. You can copy data from one site to another.
Create Library element
Create a file, enter the required content, select a part (or all) of the Library, open the Library panel, drag the selected part to the panel, and define the name, A library element is created.
Use Library elements
When editing a webpage, open the Library panel and drag the required Library elements to the desired position on the webpage. The Library elements are added and highlighted in yellow.
As shown in the original code (top. lbi is my TOP Library element ):
<My TOP table code>
Modify library elements
The inserted Library element on the webpage cannot be modified. If you want to change the element, you need to select it in the database panel.
You can select this element on the database Panel and click OPEN or double-click the element to OPEN the element and modify it as needed, when saving, DW will prompt whether to update all webpages that use this element at the same time, and select YES to update all (you can also choose NO to postpone the update, but do not forget to update it)
Delete library elements
Select this element in the panel, click DELETE, and select YES to DELETE it.
If an element is accidentally deleted, you can select the element in the file of the application library element and select Recreate [sic] on the attribute panel. Then, DW automatically uses the original library name, recreate the element.