七、制作主题(八) Customizing Orchard using Designer Helper Tools
Orchard提供了设计师工具叫Shape Tracing,能使你定制网站的外观。
Getting Started with Shape Tracing
首先要启用Shape Tracing功能,这个功能在Designer Tools模块中。
Shape Information
当Shape Tracing frame展开时,你能拖动鼠标页面的一部分上,这部分会高亮显示,点击高亮的部分显示关于shape如何呈现的信息。
frame的左边显示选择的shape,也在导航树中高亮你选择的shape
右边显示的信息是关于选择的shape和使你选择要显示的什么类型的信息。
Shape Tracing 面板显示下面的信息:
- Shape. Information about the shape and the template to render the shape. Includes the option of creating alternates as described later in this article.
- Model. Information about the model for this shape.
- Placement. The placement.infofile.
- Template. The code in the template file
- HTML. The HTML for rendering this shape.
Creating Alternate Templates
Shape Tracing接口显示让你自动创建关于一个shape的候选模板,这个接口显示了可用的候选模板和包含一个创建模板的Create链接:
Create 选项仅在指定的目录创建模板,你必须根据需要自定义呈现的shape的模板,如果使用VS,你必须通过
Add > Existing Item in Solution Explorer.包含模板到项目中。