开发者

drupal views_embed_view pass filters

print views_embed_view('VIEWNAME','default', '2011-01-01');

How can I 开发者_JAVA技巧pass values to the filters of a embedded view? I am trying to pass a date value to the exposed date filter.

Thanks for any input


If you don't embed the view's via PHP but rather with blocks, and if the exposed date filter is from one view, you can do this with the Relationships section of views. You add the view that has the date filter to the relationship of what was the embedded view. Then add an filter for the date field of the relationship view.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜