If you want your "Glossary" category to have a very different style from the rest of your site, you could create a custom category template file just for it.
如果你希望“术语表”类别的样式与站点的其它部分的样式不同,你可以为术语表创建一个自定义类别模板文件。
Below are two sample controller methods associated with the category HTML template through the TurboGears expose decorator.
下面是TurboGears expose中与分类HTML模板有关的两个样例控制器方法。
Select the new dynamic page template that you created in Step 1 of this section from the My template category of the template field, and then go to next page.
从Template区域的My Template目录中选择您在此阶段步骤1中创建的新的动态的页面模版,然后进入到下一个页面。
So we can still use the Category List layout for Menu Items that use the original template.
因为我们仍然保留着原来的模板,那些使用原模板的页面不会被影响,所以我们将来仍可以使用分类文章列表方式来呈现文章页面。
Now that you've figured out which template file in your theme's directory you need to modify, in order to make changes to the look of Category pages, let's look at some examples.
既然现在你已经了解你需要更改主题目录中的哪个模板文件,为了更改类别网页的外观,让我们来看看几个例子。
One is to search for documents by providing a detailed search criterion. The criterion includes template ID, siteArea ID, category ID, and keyword.
一种方法是提供详细的搜索条件,包括templateID、siteArea ID、category ID和关键字。
Now that you've figured out which template file in your theme's directory you need to modify, in order to make changes to the look of Category pages, let's look at some examples.
既然现在你已经了解需要更改你的主题目录中的哪个模板文件,为了更改类别页面的外观,让我们看看一些例子。
This is a basic template for UCS string collation, from which LC_COLLATE category in locale definitions can be modified to fit local cultures.
这是UCS字符串排序的基本模板,区域设置定义中的LC_COLLATE可以以它为基础根据本地文化修改。
This is a basic template for UCS string collation, from which LC_COLLATE category in locale definitions can be modified to fit local cultures.
这是UCS字符串排序的基本模板,区域设置定义中的LC_COLLATE可以以它为基础根据本地文化修改。
应用推荐