开发者

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

开发者 https://www.devze.com 2023-01-06 21:44 出处:网络
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.

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

精彩评论

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