`
presses
  • 浏览: 116104 次
  • 性别: Icon_minigender_1
  • 来自: 中山
社区版块
存档分类
最新评论

13、Building Templates

 
阅读更多

1、把一个页面中的具体部份内容填换成一些解释性文字。保留结构、背景、logo等。然后点击菜单file-save as tempate。在弹出的菜单中会询问是否update links,选择是。然后项目目录会多一个templates文件夹,里面有一个以dwt为后缀的模板文件。

 

2、打开模版文件,选中模版文件中会被各网页修改的部份,然后点击菜单insert-template object-editable region。在选择并插入editable region时最好要对着code看,确保不会把其它的布局标签也一起选择在内。

 

3、模版中某些元素的某些属性可能会被修改,此时可以在模板中选中该标签,然后点击菜单modify-template-make attribute editable。

 

4、有些区域是有的网页中有的,有的页面中没有的。些时可以选中后点击菜单insert-template object-option region。

 

5、new-new page from tempate窗口中有一个update page when tempate change。把这个选项钩上时,页面与模版间会有一个对应关系,模板改变会自动改变页面,反之,按模板创建页面后,面页与模板再没有关系。

 

6、使用模板创建的页面中,右上解会有一个模板的标志,另外在不可编辑的模板区域,鼠标会有一个禁止标志。此时可以编辑edition regions。另外在modify-tempate property中设置一些可显视区域是否显视。

 

7、如果想把一个页面的全部放入到模板的一个区域中,可以打开assets面版的tempate标签,然后点击apply。

 

8、嵌套模板。点击菜单file-new-new page from template,以一个模板建立一个新页面,然后具体化一些属性后再点击菜单file-save as template。这样就可以建立一个嵌套模板。

 

9、对于一些在页面中会重复多个的区域可以使用insert-template object-repeating region。一般情况下,这些重复的区域会改变,所以在插入repeating region的地方再插入一个edition region。

 

10,使用模板建立页面后,如果修改模板后保全,dw会问你是否修改页面。如果保存时没有选择保存,可以在modifty-tempate-update pages按模板更新页面

 

分享到:
评论

相关推荐

    Templates for the Solution of Linear Systems - Building Blocks for Iterative Methods.ps

    Templates for the Solution of Linear Systems - Building Blocks for Iterative Methods.ps

    Building Parts Templates GoJS Beginner Tutorial #4.rar

    标题中的"Building Parts Templates GoJS Beginner Tutorial #4"暗示了这是一个关于使用GoJS库构建图形化界面,特别是针对建筑部件模板的初级教程。GoJS是一个JavaScript库,专门用于创建交互式图表和图形用户界面,...

    Building Blocks.rar

    - 将"Building Blocks.dotx"文件保存到"%USERPROFILE%\AppData\Roaming\Microsoft\Templates"目录下。 - 重启Word,新模板应该已经可用。 5. **解决页码插入问题的其他方法:** - 检查页眉和页脚的锁定状态:...

    Building Web Applications with Flask.pdf 最新 原版

    You'll learn how to properly handle forms using WTForms, devise convenient templates with Jinja2 tags and macros, use NoSQL and SQL databases to store user data, test your projects with features and ...

    Microsoft Silverlight 5 Building Rich Enterprise Dashboards

    basic control templates. Chapter 8, Building an End-to-End Solution, is an overview of building a real-world Silverlight dashboard application that uses the Microsoft SQL Server Adventure Works sample...

    Building.a.HIPAA-Compliant.Cybersecurity.Program

    Building a HIPAA-Compliant Cybersecurity Program: Using NIST 800-30 and CSF to Secure Protected Health Information Use this book to learn how to conduct a timely and...Appendix C Risk Analysis Templates

    Applied C++: practical techniquest for Building Better Software

    A C++ templates primer  Workable coding guidelines and extensive coding examples  Quick lists of need-to-know information about Exceptions, Assertions, and Standard Template Library components ...

    Building.Android.UIs.with.Custom.Views

    Move beyond default UI templates, create and customize amazing UIs with Android Custom View Enable smooth data flow and create futuristic UIs by creating flexible custom views Scale your apps with ...

    Building Web Applications with Flask(PACKT,2015)

    You'll learn how to properly handle forms using WTForms, devise convenient templates with Jinja2 tags and macros, use NoSQL and SQL databases to store user data, test your projects with features and ...

    Templates For The Solution Of Linear Systems - Iterative Methods

    书中的"Building Blocks for Iterative Methods"部分,探讨了构建这些方法的基本构造块,可能包括预条件器、迭代矩阵和收敛性分析。 书中第一章阐述了使用模板的原因和优势,强调了模板在提高代码可移植性和可维护...

    Web.Development.with.Go.Building.Scalable.Web.Apps.and.RESTful.Services

    Chapter 5: Working with Go Templates Chapter 6: HTTP Middleware Chapter 7: Authentication to Web Apps Chapter 8: Persistence with MongoDB Chapter 9: Building RESTful Services Chapter 10: Testing Go ...

    Express in Action: Writing, building, and testing Node.js applications

    Views and templates: Pug and EJS PART 3 EXPRESS IN CONTEXT Persisting your data with MongoDB Testing Express applications Security Deployment: assets and Heroku Best practices

    Building Visual Components with - C# Source code

    4. **样式和模板**:在WPF中,你可以通过定义DataTemplates和ControlTemplates来改变控件的外观。这使得你可以完全自定义控件的视觉呈现,包括颜色、形状和动画效果。 5. **资源和依赖项**:如果控件需要额外的资源...

    OpenCms 7 Development

    This book is a guide for developers interested in building websites using the OpenCms content ...Creating templates Utilizing search Extending OpenCms Allowing online users to contribute site content

    Building Parts Parts and Panels GoJS Beginner Tutorial #2.rar

    同时,你也会了解到如何使用模板(templates)来简化Part的创建过程,模板可以预定义一部分或全部Part的属性,提高代码的复用性。 面板的使用则更为复杂,因为它们涉及到图形的布局。在GoJS中,你可以根据需求选择...

    cms_design_using_php_and_jquery.pdf

    We will start building a templates engine for providing cdesign to the front-end, and a simple navigation menu. Chapter 6, Design Templates – Part Two, improves on the navigation menu we started in ...

    Angular 2 Succinctly

    Booth will guide you through setting up a development environment, interacting with the Angular CLI, building Hello World, and more. By the end, you’ll know how to set up templates, compose ...

    Ext JS in Action, 2nd Edition

    Stamping out DOM fragments with templates Customizing and building Ext widgets Masterful UI design Fully revised for Ext JS version 4.0 About the Authors Jay Garcia is a well-known member of the Ext ...

    Inside Microsoft SharePoint 2010

    and Workflow Templates. Once you apply yourself and become comfortable developing with these building blocks, there’s no limit to the types of applications and solutions you can create on the ...

Global site tag (gtag.js) - Google Analytics