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.

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

报告相同问题?

悬赏问题

  • ¥20 matlab计算中误差
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊