Saturday, October 10, 2009

DreamweaverMX realizes website batch to update

In Dreamweaver 4.0, we already engaged the notion of pattern plate and library, know they are the good tool that batch makes the webpage with similar style. Be in nowadays under Dreamweaver MX(in abbreviation DW MX) , the function of pattern plate and library got be refininged further with strengthen, realize the characteristic that associated webpage updates automatically especially, make pattern plate shines what become DW MX greatly with the library color.
  
1, the application that pattern plate sees in light of us above all, what differ with Dreamweaver 4.0 is, DW MX extended the operation of pattern plate " Modify " with " Insert " below two menu. In the meantime, in " File " of option " Assert " child pattern plate also can be founded directly in option.

2, find " Assert " child option, to the left click in tool column " Templates " pushbutton, right now pattern plate is empty, we can be in right next horn are clicked " New Template " pushbutton, pattern plate of a blank can appear in face plate (the 1) that be like a graph, click pattern plate name, it is pattern plate is entered can compile position. Attention, right now pattern plate still does not have any accretion any elements, we can resemble editing common webpage to add form, image, character to wait on pattern plate euqally. After be being added, save pattern plate, can be in of acquiescent site folder " Templates " child the pattern plate that a moment ago had made is found below folder, patulous name is.dwt.



If disrelish such troubles, DW MX still provided a kind of directer means, after the editor should save the webpage that is pattern plate very much, in " File " menu midpoint is attacked " Save As Templates " , can make pattern plate.
3, after pattern plate is generated, build even can edit area, prepare to fill different webpage content in the future. Open pattern plate, click menu " Insert/Template Object/Editable Region " , appear can edit area dialog box, after designating area name, can see blue pane appears in pattern plate. The pattern plate that can edit an area was built after saving.

4, how does batch generate a webpage? Click menu " File/New " , choose " Templates " option, can see immediately build generated pattern plate, click " Create " pushbutton, pattern plate begins automatic apply mechanically to be on the webpage. We can see this time, pristine pattern plate area is yellow, among them element is already fixed, cannot edit, and we just appoint can editing area is blue, can edit. Come so, not only simplified greatly the workload that we create similar webpage, and the consistency that assured webpage style effectively.

5, finally, it is associated webpage batch is updat ed, this is an indispensable technology when large website updates a webpage, can come true easily in DW MX. Because of us all webpages apply mechanically identical pattern plate, and these webpages are saved to be in same catalog leaves a site, when the common element that wants all pair of webpages when us undertakes altering, the element in needing to revise pattern plate only can.

Open " Templates " child option, doubleclick the pattern plate of associated webpage, at that time pattern plate was entered can compile position, maize area disappears, after the content that changed pattern plate, dialog box of a clew can appear when saving: "Following webpage used current pattern plate, whether to undertake updating? " (if graph 2) is clicked " Update " , right now, all is based on pattern plate to found associated webpages in the website will get updating (the 3) that be like a graph.

 

Graph 2

 

Graph 3

As similar as pattern plate, the library of DW MX appears more agile, in " Assert " click on option card " Library " , open a library, there are any elements in temporary library, we an element that the warehouse should make in the webpage, be like form, image, in pulling library face plate directly can (following graph) .
  

Attention, the element in the library is image or literal itself merely anything but, and the code that these picture form in still including a webpage. Accordingly, we also can resemble pattern plate in same, identical library element is added on the webpage, thereby the webpage with batch production similar style. At this moment, we should procrastinate in element of lieutenant general of library face plate only return new webpage to go up can, and relevant code can duplicate automatically to go up to new webpage.

And, library element also can realize the batch of the website to update, we click library element in library face plate, make the libra ry is entered can compile position (the 5) that be like a graph, when changed library element and undertaking saving, always used the webpage of library element, can undertake synchronism is updated automatically.
 
 
Graph 5

Finally, compensatory to still having a bit newlier automatically: If a webpage was to apply pattern plate to generate, when be being updated automatically however, want to carry it original state again, do not update together as the webpage of site the others, need to click only " Modify/Templates/Detach From Templates " , right now, this webpage gets no longer the tie of pattern plate, need hand moves ability to update a webpage.

No comments:

Post a Comment