开发者

Adding custom argument in views

开发者 https://www.devze.com 2023-03-12 18:59 出处:网络
How can i add a custom where clause in Views. I have added argument field for User:uid, my requirement is to filter all the results except for particular user? something like uid != 1.

How can i add a custom where clause in Views. I have added argument field for User:uid, my requirement is to filter all the results except for particular user? something like uid != 1.

Can this be achieved using the PHP code option(Action to take if argument is not present >> Default argument type) of views..in either case please elaborate.

Thanks in Adv开发者_JAVA技巧ance....


Add a 'Filter' to your view to exclude User #1 from the results.

0

精彩评论

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

关注公众号