有机基团“背景”

发布于 2024-10-04 06:27:44 字数 193 浏览 0 评论 0原文

我正在使用 OG 和视图。目前,我的视图必须有一个页面显示来显示每个组的事件列表。因此,这意味着每次创建组时,我都必须在视图中为另一个事件列表创建另一个页面显示。

所以我想知道是否可以只显示 1 个视图和 1 个页面显示,该视图将显示通过 URL 确定的特定组的特定事件列表。

我相信在视图中使用“参数”是可能的,但我不知道这是如何工作的。

Im using OG and Views. Currently my views have to have a page display to show an event list for each group. So this means that every time a create a group I will have to create another page display in my view for another event list.

So Im wondering if I can just have 1 view with 1 page display that will show a specific event list for a specific group that would be determined through URL.

I beleive this is possible using "arguments" in views but I have no idea how this works.

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

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

发布评论

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

评论(1

生生不灭 2024-10-11 06:27:44

是的,您可以添加参数,然后将它们放入 URL 中。您可以添加“有机组:组”参数,然后创建适合您的路径,输入“events/group/%”(或您想要的任何内容),其中 % 代表组的 ID。然后,当您访问 yoursite.com/events/group/15 时,您将获得节点 ID 为 15 的有机组的事件视图。

Yes, you can add arguments, and then put them in the URL. You could add the "Organic groups: Groups" argument, and then make your for you path, enter "events/group/%" (or whatever you want), where the % represents the group's id. Then when you go to yoursite.com/events/group/15, you'll get the events view for the Organic Group with node id 15.

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