如何添加“可供下载的文件”前往 Drupal 用户个人资料页面
第一次来这里。我一整天都在寻找我的特定问题,但没有运气。
我的用户具有自动生成的特定角色(他们购买游戏)。我想在其用户个人资料页面上显示对其特定角色可用的文件。我只想知道如何添加通用视图或将面板与用户配置文件页面关联。我希望它为每个用户显示,而不是按每个用户显示。基本上,它的行为就像 direct2drive,您登录并转到您的用户个人资料,然后查看您购买了哪些游戏。看起来很简单,但我花了很长时间才弄清楚如何做到这一点。
我很习惯使用视图,但我只是不知道如何像我想要的那样编辑用户配置文件。
谢谢!
first time here. I have searched all day for my particular issue with no luck.
I have users that have specific roles auto generated (they purchase a game). I want to display files available to their particular role on their user profile page. I just want to know how I can add a generic view or associate a panel with user profile pages. I want this to display for every user, not on a per user basis. Basically it'll act like, say, direct2drive, you log in and go to your user profile basically and see what games you bought. Seems simple but I am having a heck of a time figuring out how to do this.
I am pretty used to using views but I just don't get how to edit the user profiles like I want to.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最简单的方法是安装 views_attach,并创建一个带有
Profile
显示的视图。这会在用户个人资料页面上显示视图,而不是在其自己的页面或块中,并将用户的 uid 作为参数传递给视图。或者,如果您已经习惯使用面板,您可以转到
admin/build/面板
并启用“用户”面板。这用面板替换了用户配置文件页面,您可以像平常一样向其中添加视图、节点和块。The simplest way is to install views_attach, and create a view with a
Profile
display. This displays the View on the user profile pages, rather than on its own page or in a block, and will pass the user's uid to the View as an argument.Alternatively, if you're already using comfortable using panels, you can go to
admin/build/panels
and enable the Users panel. This replaces the user profile page with a panel, which you can add views, nodes and blocks to as normal.