1

我目前正与 Sitecore 一起度过一个噩梦般的时刻。基本上我的问题有两个:

1)我第一次向模板添加标准值项目并为其添加布局设置时,我很激动,因为该模板中的所有项目都显示了布局,但是现在,某些项目现在没有显示布局全部。我尝试做演示->布局,重置几次,但无济于事。

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

我在集成模式下使用 sitecore 6.2.0 (rev. 100701)、visual studio 2008 SP1、IIS7

4

2 回答 2

1

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.

于 2011-02-05T00:17:43.877 回答
0

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

基本上这样做的方法是在标准值上设置布局,它应该更新所有项目,这些项目的布局没有被项目或分支覆盖。

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

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

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

于 2010-12-30T11:14:26.883 回答