duanjie5570 2014-12-01 10:10
浏览 22
已采纳

Drupal不呈现块视图

Good morning,

I have a block named feed-empleo whose machine name I think it is "feed-empleo-block". enter image description here

Its url is: /admin/structure/block/manage/views/feed-empleo-block/configure, so that is why I think it's machine name is "feed-empleo-block".

In my node template, I am using:

<div class="block block-feed" id="block-feed-empleo">test</div>

That is because I think its class and id should be:

<div class="block block-{module}" id="block-{module}-{delta}">   

So, finally, I have created a templated named:

views-view--feed-empleo-block.tpl.php

I must be doing something wrong because there is nothing in the div tag. But I am not really sure why isn't being shown.

  • 写回答

1条回答 默认 最新

  • doubi3996 2014-12-31 05:37
    关注

    Go to views -> advance -> Other -> Theme: Information and rescan your view template file from there. and you can see your custom template there.

    Check this link for proper info:

    https://drupal.stackexchange.com/questions/11468/create-template-file-for-views-block

    Make sure you rescan template file and clear your drupal cache as well.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 WPF使用Canvas绘制矢量图问题
  • ¥15 用三极管设计一个单管共射放大电路
  • ¥15 孟德尔随机化r语言运行问题
  • ¥15 pyinstaller编译的时候出现No module named 'imp'
  • ¥15 nirs_kit中打码怎么看(打码文件是csv格式)
  • ¥15 怎么把多于硬盘空间放到根目录下
  • ¥15 Matlab问题解答有两个问题
  • ¥15 LCD12864中文显示
  • ¥15 在使用CH341SER.EXE时不小心把所有驱动文件删除了怎么解决
  • ¥15 gsoap生成onvif框架