如何通过编程方式确定包含某些实体对象的内容的布局的页面?
我有实体listSettings
,用作2个布局的内容 - 项目类型。每个布局在不同页面上使用3次。 我编写的代码未在页面上执行 - 它在2SXC模块之外。 因此,我不会在哪个页面上找到实体ListSettings
的每个对象。 Tabid是最好的。通过布局过滤也可能会有所帮助,因为我需要3个使用2个布局中的1个标签。 我该如何编程?每个实体内部有很多数据,包括一些关系,孩子,父母等。我也确定所有这些数据都可以手动从数据库中获取,但这对我来说似乎是一个困难的方法。
底线:我有6个实体。我想以编程方式获取他们的标签和布局。布局是可选的,但很好。 有什么建议吗?
I have entity ListSettings
which is used as Content-Item type for 2 layouts. Each layout is used 3 times on different pages.
The code I'm writing is not executed on the page - it's outside of 2sxc module.
So I wan't to find out on which page each object of entity ListSettings
is. TabId is the best. Filtering by layout could be helpful as well since I need 3 tabIds that use 1 of the 2 layouts.
How do I do that programmatically? There's a lot of data inside of each entity including some relationships, children, parents and so on. Also I'm sure that all this data could be taken from the database manually, but it seems to be a hard way for me.
Bottom line: I have 6 entities. I want to get their tabIds and layouts programmatically. Layouts are optional but would be good.
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这很具有挑战性,因为涉及太多步骤。但是您可以在此处找到类似的事情 https:/ DNN-Tutorials/en/razor/2sa110/page
这是代码的摘录:
This is quite challenging, because there are so many steps involved. But you can find something that does something similar here https://2sxc.org/dnn-tutorials/en/razor/2sa110/page
Here is an excerpt of the code: