开发者

How to embed multiple view blocks into a view block and display them conditionally?

I'm trying to embed multiple view blocks into a single vi开发者_StackOverflowew block. However, I want each of the other views displayed only if they meet certain conditions.

What is the best way to do this?

Im running Drupal 6 with Views 2 and CCK.


Personally I would use multiple blocks and use the block visibility options to decide what is displayed.


Additional answer.

If you can't use multiple blocks and the standard block visiblility. The other way you can work around this is to use hook_block in your own module to call the views when needed. either by using views_block() or calling views_embed_view()

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜