应用这个模板的子页面应该继承模板页面,如清单35和36所示。
Child pages that use this template should inherit from the template page, which is shown in Listings 35 and 36.
请参阅下面的详细信息模板结果部分或单独的二进制模板页面。
See the Template Results section below or the separate Binary Templates page for more information.
在WebSEAL 中,可利用模板页面来自定义不同的认证相关页面。
WebSEAL allows its various authentication-related pages to be customized using template pages.
第二个ui:define标记让您指定页面主体,在模板页面中没有默认内容。
The second ui:define tag lets you specify the body of the page, which in the template page has no default content.
内容作者可以从针对新页面复制的模板页面中选择一个要使用的模板和所有设置(图5)。
A content author can choose a template to work with and all the Settings from the template page are copied for the new page (Figure 5).
在这些模板页面中,可以定义主题和皮肤,在其上加载portlet,甚至对它们进行预配置。
On these template pages, you can define themes and skins, load portlets on them, and even pre-configure them.
即使你是采集来的数据通过聚合的手段放在一个原创度高的模板页面中,百度也会青睐这种页面。
Even if you are collecting data by means of polymerization in a high degree of original template pages, baidu will also be in favor of this page.
为了解决这个问题,我们建议创建一个美观的说明性错误模板页面,然后将其放到应用程序的模板文件夹中。
To rectify this, it is advised to create nice, explanatory error template pages and put them in your application's template folder.
接下来,选择一个您希望使用的模板页面,其中已经定义了主题、主题策略和portlet(图4)。
Next, select a template page that already has the theme, theme policy, and portlets defined on it that you want to use (Figure 4).
当设计人员需要在Velocity模板页面中包含一张表时,该设计人员只需输入以下语法及相应的参数。
When a designer needs to include a table in a Velocity template page, he can simply enter the following syntax with the proper parameters.
清单23中所示的composition标记有一个template属性,指向清单22中所示的模板页面。
The composition tag shown in Listing 23 has a template attribute that points to the template page shown in Listing 22.
要尽可能地为内容作者简化这一过程,现在可以定义一组模板页面,这是位于特殊标签(或页面)下的一些普通门户页面。
To make this as simple as possible for your content authors, you can now define a set of template pages, which are regular portal pages located under a special label (or page).
让我们回过头来试用PageProperties面板(图4)上的第二个新的WebContent选项,它是一个模板页面选择功能。
Let's go back and try the second new Web Content Option on the page Properties panel (Figure 4), which is the ability to select a template page.
内容作者设置页面名称,选择模板页面,然后选择WebContentManagement站点区域,页面就创建完成了(图6)。
The content author sets the page name, selects the template page, selects the Web content Management site area, and the page is done (Figure 6).
在本例中,我使用了param标记,将当前页面的名称传递给模板页面,以便动态输出链接,用于每个页面底部的Show Source功能。
In this case, I'm using the param tag to pass the name of the current page to the template page to dynamically output a link for the Show Source functionality at the bottom of each page.
现在看一下Register . xhtml,该页面引用并使用了模板页面template . xhtml,且引入了define和composition标记(参见清单23)。
It's time to look at Register.xhtml, a page that references and makes use of the template page template.xhtml and introduces the define and composition tags (see Listing 23).
只需要单击NewWebContentPage(图1),添加一个页面名称,选择一个 Web Content Management站点区域和一个模板页面,就可以完成所有操作。
You get all of that by simply clicking New Web Content Page (Figure 1), adding a page name, selecting a Web Content Management site area and a template page.
该测试的成功执行(如清单21所示)能确保模板和页面层次结构是相匹配的。
Successful execution of this test, as shown in Listing 21, ensures that the template and the page hierarchy match.
您已经成功地创建了一个新的模板并在页面上使用了它。
You have successfully created a brand new template and used it on your page.
将模板应用于所有页面。
现在我们要创建视图所加载并呈现的两个页面模板。
Now, create two page templates to be loaded and rendered by the views.
视图还可以给模板变量赋值;这些值会在运行时自动地填充到页面模板中。
Views can also assign values to template variables; these values are automatically interpolated into the page templates at run-time.
当然,也可以使用结果页面模板和分页机制代码片段来实现此功能。
You can certainly accomplish this with a template for the result page and a snippet for the paging mechanism.
第一种方法是向选中的页面模板添加布局标记。
The first is, obviously, to add the layout markup to the selected page template.
此处的想法是让站点看起来像使用了框架,除了现在利用页面模板的情况。
The idea here is to allow the site to look just as it did with the frames, except now by using the page template.
对于图5中显示的模板选择页面,添加了一个新的“示例操作”,如图9所示。
For the template selection page, which appeared in Figure 5, a new Sample Action was added, as shown in Figure 9.
模板化 ——能够创建用于页面代码重用和取代的模板。
Templating — The ability to create a template for page code reuse and substitution.
这样,就可以根据页面模板是否用于主页来控制显示哪些内容。
This way, we control which content to present based on whether the page template was being used for the home page or not.
可以在多个模板之间使用页面组件文件,还可以更改模板来修改布局而不会影响数据。
You can use the page component files across multiple templates, and you can change the templates to modify the layout without affecting the data.
可以在多个模板之间使用页面组件文件,还可以更改模板来修改布局而不会影响数据。
You can use the page component files across multiple templates, and you can change the templates to modify the layout without affecting the data.
应用推荐