【问题标题】:drupal 7: custom design theme a block created with the Views moduledrupal 7:自定义设计主题使用 Views 模块创建的块
【发布时间】:2012-11-27 21:21:24
【问题描述】:

我创建带有视图模块的块,用于将打印提升到首页,这有效,我在首页看到了结果。此视图适用于字段,我打印标题、拇指、内容。现在我需要自定义此主题视图以在 jquery 内容滑块中显示。

我点击高级->主题->信息我看到了这个:

field content revision: views-view-field.tpl.php, views-view-field--title.tpl.php, views-view-field--frontpage.tpl.php, views-view-field--frontpage--title.tpl.php, views-view-field--block.tpl.php, views-view-field--block--title.tpl.php, views-view-field--frontpage--block.tpl.php, views-view-field--frontpage--block--title.tpl.php, views-view-field--block-1.tpl.php, views-view-field--block-1--title.tpl.php, views-view-field--frontpage--block-1.tpl.php, views-view-field--frontpage--block-1--title.tpl.php

但我没有找到任何.tpl.php 主题文件用于使用 html 和 css 编辑主题设计。如何创建自定义设计主题以使用这种格式打印我的结果:

<div id="content">
   <ul>
     <li>
        <div class="title">title1</div>
        <div class="thumbs"><img 1 ......></div>
        <div class="content">content1</div>
     </li>
     <li>
        <div class="title">title2</div>
        <div class="thumbs"><img 2 ......></div>
        <div class="content">content2</div>
     </li>
   </ul>
</div>

【问题讨论】:

    标签: drupal drupal-7 drupal-views drupal-theming


    【解决方案1】:

    我认为Views 2 theming 指南已经清楚地解释了一切。只需按照那里的步骤操作,只需几分钟。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多