开发者

drupal views_embed_view pass filters

开发者 https://www.devze.com 2023-01-28 14:23 出处:网络
print views_embed_view(\'VIEWNAME\',\'default\', \'2011-01-01\'); How can I 开发者_JAVA技巧pass values to the filters of a embedded view?

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

精彩评论

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