开发者

Drupal6 - Display specific View from a specific user in page

开发者 https://www.devze.com 2023-02-08 19:00 出处:网络
I need a help displaying a specific View result in a page which the user created it. story... \"User X has created a Page called My Store and UserX has products which was created in custom Content It

I need a help displaying a specific View result in a page which the user created it.

story... "User X has created a Page called My Store and UserX has products which was created in custom Content Item."

Now how do I show this UserX's products in his My Store page?

I have already made a view called User_Store_View, I added a Page Display and on Page Settings:Path, 开发者_Python百科the value was "node/%".. now I guess my problem is on the Arguments?


The path should be something like my-store and it should have an argument of user id. Given your requirements I think setting the default behaviour for the argument being invalid or not being supplied to an empty result set would be the most sensible(I think the default is show all). That may be all you really need.

However, if your product is a type that you've created yourself you will need to do some behind the scenes wiring to expose all your fields to Views; it's almost always better to build a content type using CCK so it's already hooked up to Views. And D7 is a different beast in this regard, with fields part of core and whatnot, so I can't help you out there.

0

精彩评论

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