问题描述
我在sitecore中创建了一个新的页脚子布局,用于多个网站(我们运行多网站环境)。目前使用的是一个称为StandardLayout的子布局,但是我想将其在我们的几个网站上更改为一个新布局GlobalFooter。
I am creating a new footer sublayout in sitecore for use in multiple sites (we run a multi site environment). Currently a sublayout called StandardLayout is used, but I would like to change this across several of our sites to a new layout GlobalFooter.
问题是,页面覆盖了布局组件,所以我想知道的是,如果有一个简单的方法来更改布局,而不会丢失所有的覆盖组件(因为我预计,我可能需要重置布局为了流向下到发生)?
The problem is that child items of the Home Page have overridden layout components, so what I would like to know is if there is an easy way to change the layout without losing all of the overridden components (as I expect that I may need to reset the layout in order for the flow down to occur)?
我希望能够更改顶级元素(Home),然后让这个流向下到子元素,否则此任务将变得非常长,
I am hoping to be able to just change the top level element (Home) and then have this flow down to the child elements, otherwise this task will become very long and tedious if I need to go through each item and change the presentation to use the new footer.
上图中以红色圈出的图标表示演示文稿已被覆盖
The icon circled in red in the image above indicates that the presentation has been overridden for that particular sitecore item.
推荐答案
要直接回答您的问题,无法应用更新的演示文稿详细信息一个模板到从它继承的模板,它们的演示文稿详细信息已更改,而不会丢失更改。
To answer your question, directly, there is no way to apply an update of the presentation details of a template to templates that inherit from it that have had their presentation details changed without losing the changes.
是您更新继承演示文稿的最佳解决方案细节以这种方式。 IMHO,我相信这个功能应该早已内置在Sitecore作为功能区上的一个单独的按钮,你可以选择添加一个,如果你这么倾向。如果你没有时间这样做,然而,创建一个管理员页面,你以后删除从网站使用后,也是一个完全可行的解决方案。
The solution described in the blog post you linked to is the best solution for updating inherited presentation details in this manner. IMHO, I believe that this functionality should have been built into Sitecore long ago as a separate button on the ribbon, and you may choose to add one if you are so inclined. If you do not have the time to do so however, creating an admin page that you later delete from the site after using is a perfectly viable solution as well.
这篇关于在父项和子项中替换sitecore布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!