跳转到主要内容
kenken 提交于 24 December 2016

在views里面创建两个block如下图所示:

qqtu_pian_20161224144849.png

然后第一个block设置contextual 为登录用户显示所下图所示:

2.png

设置保存以后,然后在block2设置匿名用户要显示的内容,再通过block1当中的 No results behavior 选项,添加Global: View area (Global: View area)通过设置如果下图所示:

3.png

选中你要显示的block,最后把block1放到你所要放的位置即可。

标签
Drupal 版本