根据所选语言分块查看内容
如何根据用户选择的语言分块显示内容节点?
我已经知道如何为“普通”节点执行此操作,而不是在块中。
编辑:我尝试用视图来做到这一点。节点过滤和内容翻译:语言。问题是,我不知道如何过滤两个(节点的)id,只过滤一个。
How can i display content nodes in blocks depending on the selected language by the user?
I already know how to do it for 'normal' nodes, just not in blocks.
Edit: I tried to do this with views. Filtering on a node and content translation: language. The problem is, i don't know how to filter two id's (of the nodes), just one.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您相继创建了节点,则可以非常轻松地完成此操作,因为您可以查询一系列节点 ID。
视图 UI 不支持在 where 子句中使用 OR,因此要进行如下所示的查询并不容易。
制作 OR 是视图已在这里被问过几次,我已经在这里回答了这里。
If you have created the nodes after each other, you can do it pretty easily, since you can query for a range of node ids.
The views UI doesn't support making OR in where clauses, so it's not easy to make a query that looks like this.
Making OR is views have been asked a few times here, I've answer it here.