用户为自定义视图选择节点 (DRUPAL)

发布于 2024-09-26 02:48:12 字数 554 浏览 7 评论 0原文

所有,我希望您可以帮助我,或者指导我回顾已经存在的易于找到的答案。

过去一个月我有两个 drupal RFP,其中管理员维护内容,但希望用户能够标记节点以便稍后在自己的自定义视图中查看。

在这两种情况下,用户都应该登录,并且他们所做的选择应该与其帐户相关联。

示例:有一个事件日历,用户可以在其中选择他们希望参加的事件。稍后,用户可以转到“我的事件”页面并查看他们的个人日程安排。

一个稍微复杂的例子是,用户可以从投资组合中选择图像,稍后将其输出到自定义 pdf 中 - 在这种情况下,用户可能需要多个投资组合。

我能想到的唯一(看起来非常笨拙)的解决方案涉及一种黑客攻击,即选择一个节点将触发一些代码,该代码将一个标签添加到作为用户名的节点。然后,稍后可以使用带参数的视图来仅调用具有该标记的节点。在后一种情况下,该标签甚至可能必须是 userName+portfolioNumber

这似乎......并不理想。我无法隔离正确的秘密谷歌搜索,该搜索揭示了执行此操作的标准方法 - 也请随时向我指出。 (哎呀,事实证明我在这方面的所有 drupal 研究方面都很糟糕)

提前致谢!

all, I hope you can either help me, or direct me the the easy-to-find-in-retrospect answer which is already out there.

I have had two drupal RFPs in the past month where the admins maintains content, but wants users to be able to mark nodes for viewing later in their own custom view.

in both cases, the user should be logged in, and the selections that they make should be associated with their account.

example: There is an event calendar where the user may select events that they wish to attend. at a later time, the user may go to a "my events" page and see their pesonal schedule.

a slightly more complex example would be where a user could select images from a portfolio to be later outputted to a custom pdf - in this case the user might want several portfolios.

The only (very clumsy seeming) solution I could come up with involved a hack whereby selecting a node would trigger a some code that added a tag to the node that was the user's name. then later an view-with-argument could be used to call only nodes with that tag. in the latter situation, that tag might even have to be userName+portfolioNumber

this seems... not ideal. I have not been able to isolate the correct secret google search that reveals the standard way to do this - feel free to point me there as well. (heck I prove to be bad at all drupal research for that matter)

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不必你懂 2024-10-03 02:48:12

对于有点特殊且复杂的事件,有很多模块可以完成类似的事情。我过去使用过注册模块,对此感到很高兴。

对于内容的一般标记,我认为标志模块将带您到达您想要的地方。

For events which are a bit special and more cpmplex there is a lot of modules for doing things like that. I've used the signup module in the past and been happy about that.

For general marking of content, I think the flag module will get you where you want.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文