布局细节对模板标准值的继承

发布于 2024-09-11 22:08:47 字数 417 浏览 0 评论 0原文

我有一个模板 A,其中有多个子布局和 Web 控件分配给布局详细信息的 StandardValues。如果我继承此模板并创建一个新模板 B,它将继承 A 的所有布局详细信息并显示正常。

现在,我必须更改模板 A 上的其中一个 Web 控件的数据源。我选择了 StandardValues,转到“Presentation>Details”,并将数据源更改为指向我希望控件使用的项目。问题是,即使我已经在 StandardValues 上完成了更改,更改也不会传播到 B。模板 A 上的 DataSource 的值最初为空,我将其更改为 /sitecore/content/Global/Item 但 Webcontrol 上的 DataSource模板B仍然是空的(它不应该显示继承的值吗?)。

我可以选择哪些选项来将基本模板上的更改传播到基于它们的模板?

谢谢, 本

I have a template A which has several sublayouts and web controls assigned to the StandardValues for the Layout Details. If I inherit from this template and create a new template B it inherits all the layout details from A and displays fine.

Now I had to change the Datasource for one of the web controls on template A. I selected the StandardValues went to Presentation>Details and changed the DataSource to point to the Item I want the control to use. The problem is even though I have done it on the StandardValues the change does not propagate to B. The value of DataSource on template A initially was empty and I changed it to /sitecore/content/Global/Item but the DataSource on the webcontrol in template B is still empty (shouldn't it display the inherited value?).

What are my options to have changes on base templates propagate to templates that are based on them?

Thanks,
Ben

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

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

发布评论

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

评论(1

酷炫老祖宗 2024-09-18 22:08:47

您好,前几天与 Sitecore 支持人员交谈过,显然我所经历的是预期行为。以下是有关如何实现布局详细信息继承的链接:布局详细信息继承

这对我来说似乎有点矫枉过正,因为我只需要它来处理一些模板,所以我只是手动编辑它们。

干杯,

Hi talked to Sitecore support the other day and apparently what I experience is expected behaviour. Here is a link on how to implement inheritance for Layout Details: Layout Detail Inheritance .

It seemed like a bit of an overkill to me as I just needed it for a handful of templates so I just manually edited them.

Cheers,
Ben

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