The pattern of deputy page frame that there often can be a lot of when we are building a relatively large website even a few small detail elements are identical, but of worry making a person is expend some of setbacks when updating them, the iteration that wants to all over updates the element in each page. We can say good-bye to that times now, because DW introduced " library " this concept. We can use it to come the in updating a website identical element of batch. Come greatly whole page frame, small to a character.
Of the library introduce very not perfect still in DW3, but in DW4 up to is perfect. We let look how to use a library to update a site below:
One, of library file build.
Build library file to have two kinds of methods, it is to editing the make choice of below condition an element, open library face plate next (F11 bolts - the label that chooses the book model that icon flies to break up in the Assets of f lick) press. So DW is met build a file that suffixal name is " .LIB " automatically to read this element this document in the center, can build folder of " of Library of a " in this locality site at the same time. It represented each library file is independent, when we upload this locality site to arrive in long-range server, want to upload this file along with all the others; The 2nd kind of method is to open library face plate, in white file record area clicks right key, the New Library Item in the list that chooses flick (new library project) , build file of a blank library, doubleclick next open have an edition. The first kind of method applies to the library file of the small element such as link of \ of text \ image to build. The 2nd kind of method applies to what make the library file of length large-scaly to build, below great majority circumstance, of extensive library file building cooperate to use with pattern plate.
2, the application of li brary file and editor.
See next pictures above all,
We built a few simple library documents, include form of \ of join \ image among them. They can be understood each times to be a single element to insert editor area to use, should procrastinate directly from inside library face plate only it is OK to drag them to reach the place of need. Those who need an attention is, insertion library file locks up calm condition. Their indication means is flaxen. File of a library examines make choice of code, this represented the " of * of * of label " * that you can discover as follows a complete library file, have begin to have an end. You can change the position of label, but do not delete them, in that way word this library file is destroyed and return pure editor condition.
The method that compiles library document has two kinds, it is file of a certain library is doubleclicked to enter editor state in division of record of file of library face plate. 2 it is make choice of file of a library clicks right key to choose Open Library Item in the list of flick (open library project) enter editor state. After our editor is finished and saving library file, the page that is in an editor to using this document below condition can be updated automatically. If other blame edited the page of condition to also use this library document, so DW will be automatic play a draw a frame round of a clew (see a picture 2) ,
Enquire all uses this document pages inside site of whether synchronous newer this locality. This function namely the biggest advantage of library file. After we make the site that finish in uploading folder of library of all file along with long-range server along with all the others, so in join when us the condition of long-range site falls when altering document of a certain library, the similar hint that can get DW (see a picture 3) ,
The inquiry used all pages of this library file in whether synchronous newer entire site. Click Ok key, the file in long-range site got updating, the iteration that does not need little completely replaces each document.
Till here, we are right the makes in order to had a main idea understanding of the library. Use as to the adroitness of this function be about to rely on oneself to start work more. Believe this function can give your site to bring huge newlier to go to the lavatory.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment