sitecore 模板标准值布局未更新所有项目,布局未加载

发布于 2024-10-08 17:47:44 字数 534 浏览 5 评论 0原文

我目前正在经历 Sitecore 的噩梦般的时刻。基本上我的问题有两个:

1)第一次我向模板添加标准值项目,并向其添加布局设置时,我很兴奋,因为该模板中的所有项目都显示了布局,但是现在,某些项目现在根本不显示任何布局。我尝试做presentation->layout,重置了好几次,但没有效果。

2)我向另一个占位符的标准值布局添加了一个新的子布局,在模板上发布(重新发布所有内容,发布子项目),然后再次在标准值项目上发布,以防万一(不需要),我单击在模板中的所有项目上,它们显示带有新子布局的更新布局(应该很好,对吧?)但是,我浏览页面,无论是实时浏览还是预览页面,我仍然看到没有新子布局的旧布局。 - 我在新子布局的 page_load 中添加了一个断点,但它从未命中,其他的则命中 - 我尝试清理 sitecore/admin/cache.aspx 上的缓存,但没有帮助 - 尝试回收应用程序池,重新启动网站,在机器上传播黑公鸡的血液,似乎没有任何帮助

我正在使用sitecore 6.2.0(修订版100701),Visual Studio 2008 SP1,集成模式下的IIS7

i'm currently having a nightmarish moment with Sitecore. Basically my issues are two-fold:

1) the first time i added a standard value item to a template, and added a layout setup to it, i was thrilled, since all my items from that template were showing the layout, however now, certain items are now showing no layout at all. I tried doing presentation->layout, reset several times, but to no avail.

2) i added a new sublayout to the standard value layout to another placeholder, did publish on the template (republish everything, publish subitems), then publish on the standard values item again, just in case (should not be needed), i click on all items from the template, and they show the updated layout with the new sublayout (should be good, right?) however, i browse, both live and with preview to the pages and i am still seeing the old layout without my new sublayout.
- I added a breakpoint in the page_load of the new sublayout but it never hits, the others do
- I tried cleaning the cache on sitecore/admin/cache.aspx, but did not help
- tried recycling the app pool, restarting the web site, spreading black rooster' blood over the machine, nothing seems to helps

i am using sitecore 6.2.0 (rev. 100701), visual studio 2008 SP1, IIS7 in integrated mode

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

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

发布评论

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

评论(2

冷情 2024-10-15 17:47:44

基本上,执行此操作的方法是在标准值上设置布局,这应该更新所有项目,这些项目的布局尚未在项目上或被分支覆盖。

这是问题的关键。如果未使用模板标准值布局更新的项目是使用分支创建的,请检查以确保该分支没有与其关联的布局详细信息。如果分支除了模板之外还有布局详细信息,则两者将发生冲突并导致非常奇怪、令人沮丧的行为。

我遇到了完全相同的情况,但在从我的分支中删除布局详细信息后,问题就消失了。

Basically the way to do it is set layout on the Standard Values, which should update all items, that haven't had their layout overwritten on the item or by a branch.

This is the key to the issue. If your items that aren't getting updated with the template standard value layout were created using a branch, check to make sure that branch does not also have layout details associated with it. If the branch has layout details in addition to the template, the two will conflict and cause really odd, frustrating behavior.

I encountered the exact same scenario, but after removing the layout details from my branch the issue went away.

苦笑流年记忆 2024-10-15 17:47:44

听起来很奇怪......通常只有当标准值、模板/分支上设置的布局之间存在“冲突”时才会发生这种情况。

基本上,执行此操作的方法是在标准值上设置布局,这应该更新所有项目,这些项目的布局尚未在项目上或被分支覆盖。

我真的不喜欢分支,所以总是尽量避免它们(当它们是大师时唯一真正的用途是构建项目的层次结构)。

您能否尝试查看项目的 __layouts 字段(“查看”>“原始值”)并查看是否在其中输入了任何内容?

是仅部分项目还是所有项目都基于该模板?

Sounds strange... usually this only happens, when you have a "conflict" between layout set on Standard Values, template/branch.

Basically the way to do it is set layout on the Standard Values, which should update all items, that haven't had their layout overwritten on the item or by a branch.

I really dislike branches, so always try to avoid them (the only real use when they were Masters were for building hierarchies of items).

Could you try to look in the __layouts field (View > Raw values) of the items and see if anything is entered there?

And is it only some items or all items based on that template?

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