开发者

contextual filter in Drupal 7 sql error

开发者 https://www.devze.com 2023-04-12 01:19 出处:网络
I have a view with is a page layout.The path is set to /users/%/profiles I want to feed it a user name and filter the content whe开发者_StackOverflow中文版re author name = fileter.

I have a view with is a page layout. The path is set to /users/%/profiles I want to feed it a user name and filter the content whe开发者_StackOverflow中文版re author name = fileter. I created a contextual filter of User: Authentication name , I really want the user name of the author of the content. I believe this is correct.

The rest of the view is working. If I remove the contextual filter I get all items of the content type I am looking for.

when I try to browse /users/jjones/profiles I get the same error as below on the auto preview.

When I try to use the auto preview I get an sql error near \'= \'jjones\')

I can;t get my hands on the full sql since it is very deep in the drupal core (I hate that).

Drupal 7.8 Views module 7.x-3.0-rc1

0

精彩评论

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

关注公众号