English 中文(简体)
Drupal Views2 Exposed Form
原标题:Drupal Views2 Exposed Form

A while back you commented on a poster s question for how to alter the Drupal Views2 Exposed Form. In the post you mentioned:

改变这个主题的适当方式是,在你的主题中,超越意见上的内容。 考虑到这一点将适用于所有暴露的过滤表格,以具体的主题为主题,你将需要使用不同的名称,例如:

views-exposed-form-TITLE--DISY.tpl.php
意见-经验-TITLE.tpl.php

以及其他一些方面,你可以检查这个主题:你对模版命名公约的看法信息部分。

您能否进一步介绍一下TITLE和DISPLAY究竟是什么? 是否需要两个模板文档,或者只是其中之一?

感谢。

最佳回答

我不是你所说的职务的作者,但我可以回答这个问题。

对这些产出的看法是,产出的具体部分有一个基数模板,这一基数模板可通过增加附加限定词而变得更加具体。

如果您在主题文件夹(或来自已安装了意见的任何地方)上抄录/sites/all/modules/views/theme/views-exposed-form.tpl.php,则对该文本做了修改,然后编辑了您的意见并选择了。 主题:信息和点击Rescan Template files,目前意见将在您的主题文件夹中使用这一模板,以提供暴露的过滤器。 这是基础模板名称,因此将被用于每一种观点的暴露过滤器。

如果对每张“过滤器”表格适用你重新作出的改动,那么你就会重新做。 但是,您限制这种压倒一切的模板,以征求具体意见,甚至表明具体意见。 如果您在座标上适用,则您可更名为主题:< >>> > > > > > > > > > > > > > > > > ? 每一更名为<>或新版>后使用<><>/><>>>。 页: 1

一种观点可以有多种显示——可能是一种 block、一页、一页行政等。 这些意见被垂直地列在单页左边,以供参考。 你们可以更加具体,以某种特定观点为对象。 为此,您可指定这一模板文档:views-exposed-testview-page-1.tpl.php,这只能用于测试观点,而且只能用于显示这种观点的第一页。 您可以通过在表格上 h取显示名称,在URL的末尾,显示身份(数字,第1页等)。 只是记住,在模板档案名称中,用第1页而不是第1页,只字不提。

也可把所有网页作为目标:views-exposed-form-testview-page.tpl.php

These naming conventions as well as a list of templates which can be overriden are available here: http://views.doc.logrus.com/ (click Views Template Files).

因此,如果你在想推翻缺省模板时有具体表现或观点,那么你只需要一个针对这种组合的单一档案。 如果你需要把更多的观点作为目标,或显示组合,你将拥有更多的档案。

问题回答

You can try Views exposed form layout module for views exposed form theming.





相关问题
Drupal Multi-language: Simple strings not translated

I m adding additional languages to a Drupal site that I m building. Getting the translation of content working is fairly easy using the Internationalisation module. Yet, simple things such as date ...

Setting up a WYSIWYG editor for Drupal site users [closed]

Looking through the Drupal contrib modules, and after a few Google searches, it becomes evident that there are any number of choices and combos available to set up a WYSIWYG editor in Drupal. I m ...

Change size of user/password login box

I don t know how to change the size of the login username/password boxes on the drupal site that I m trying to build. I m stumbling through the theming, and don t know where to find the file that ...

How does Drupal provide an edit/review/publish model?

How does Drupal support a means to update and review a website before it is published? Does it only allow you to preview a page at a time before you publish it or is there a way to create a site ...

Term for rotating header

I m looking for terminology that describes this behavior: The header of a web-page contains a different image every time you visit it. Update: It is not an advertisement, but images related to the ...

Has anyone checked out Drupal 7? [closed]

Has anyone checked out a copy of Drupal 7 yet? What do people think? I m pretty excited about the PDO and all of the designers I work with a very excited about the new admin interface/structure. Do ...

热门标签