EE布局逻辑

发布于 2024-12-07 11:13:10 字数 432 浏览 0 评论 0原文

我们是一座有四个不同地点的教会:我们称它们为北、南、东、西。现在,每个地点都有“部委”:我们称它们为“男人”、“男孩”、“女人”、“女孩”。

问题就在这里,并非所有地点都有相同的“部委”。基本上,我将 EE 中的后端设置为“部委”是一个频道,并且创建了一个名为“位置”的类别组,其中包含北、南、东和西作为类别。然后,我为北、南、东和西设置一个静态模板,以便 URL 看起来像 site.com/north/ministries/man 等......我的问题是我不知道如何让类别链接发挥作用。例如,在我的 North 模板页面下,我进行调用以显示包含“Man”类别的所有条目。唯一的问题是,我不确定一旦用户单击“Man”链接,我可以将其发送到哪里。例如,无论用户从类别中单击哪个 URL,都需要知道该类别是从“北方”位置发送的,因为每个“部委”的内容根据其所在位置的不同而有所不同。任何想法都将受到极大的赞赏。

谢谢!

We are a church with four different locations: let’s call them North, South, East and West. Now, each of these locations has ‘Ministries:’ Let’s call them Man, Boy, Woman, Girl.

Here’s where the problem lies, not all of the locations have all of the same ‘Ministries.’ Basically, I’m setting the backend up in EE to where ‘Ministries’ is a channel, and I created a category group called ‘Locations’ that holds North, South, East and West as categories. I then set up a static template for North, South, East and West so that the URL will look like site.com/north/ministries/man, etc… My problem is I can’t figure out how to get category linking to work. For example, under my North template page, I make a call to show all entries that hold the ‘Man’ category. The only problem is that I’m not sure where I can send the link for ‘Man’ once the user clicks it. For instance, whatever URL the user clicks on from the category needs to know that the category was sent from the ‘North’ location because the content for each ‘Ministry’ is different depending on which location it’s in. Any idea’s would be hugely appreciated.

Thanks!

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

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

发布评论

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

评论(1

野却迷人 2024-12-14 11:13:10

@rjb 和@Stephanie,感谢您的评论。我最终决定使用多站点管理器将每个校园变成主站点子文件夹中自己的“站点”是可行的方法,因为每个校园可能都会有大量独特的内容将来。

由于它们现在由“站点”分隔,因此使用类别来关联内容非常容易,因为现在所有内容都将正确关联。再次感谢。

@rjb and @Stephanie, thanks for your comments. I finally decided that using the Multi-Site Manager to turn each campus into it's own 'site' in a sub-folder of the main site was the practical way to go, since each campus is likely going to have a large amount of unique content in the future.

Since they're separated by 'site' now, it's super easy using categories to relate content, since it's all going to be properly related now. Thanks again.

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