Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Adobe Dreamweaver CS3 Unleashed- P16: The good news is Dreamweaver provides numerous windows, panels, inspectors, and toolbars for streamlining the way you build websites. The bad news, unfortunately, is that Dreamweaver provides numerous windows, panels, inspectors, and toolbars for streamlining the way you build websites. Why so many windows, panels, and so on, Dreamweaver is unprecedented in the feature set it provides, allowing developers complete control when building websites and applications | 1 Nested Templates In most cases templates combined with the flexibility of editable optional and repeating regions are enough for most web development tasks. In some rare cases however single locked regions might be too rigid to be useful. Assume for a moment that Vecta Corp has decided to branch out into three separate companies in support of their three solutions vProspect vConvert and vRetain . Although the Vecta Corp parent company still wholly owns the three subsidiaries each of the three companies websites should have a slightly different look and feel than the parent company s. One way of achieving this is to create different templates one for the parent company site and one for each subsidiary company site that s a slight variation maybe a different color scheme of the parent. The downside to this approach is maintainability. If the parent site were to be customized changes wouldn t trickle down to the four subsidiary sites because they re based on entirely different templates. To fix this problem we could create a nested template. A nested template works much like the name says It s a template wrapped within the framework of a second template. In the preceding model we could easily solve the maintenance issue by creating a template for our parent company and then create nested templates for our subsidiary sites. This way if customizations are made to the parent template the changes trickle down to all the descendant pages. Because nested template development in Dreamweaver isn t all that intuitive follow these steps to see how they work 1. Create a master template as you would normally. That is create the structure of your site and then choose the Save As Template option from the File menu. In our case we would create the header and logo that represents the main Vecta Corp site and save that as a template. 2. Insert editable optional and repeating regions wherever you want variable content to appear in the template. Save the template when you re ready. 3.