Branch template and consistent layout with sitecore

蓝咒 提交于 2019-12-24 10:08:59

问题


We are using EviBlog, and I want the layout change to be consistent whenever I change to layout for the layout template.

However that don't work. The layout get copied and won't change in item, even on fresh new item, when I update the template layout.

I can't use a base template, because EviBlog doesn't check for inheritence, it's check only for direct template ID, when listing.

From want I understand, Standard Value would be helpful, I haven't found a way to specify standard value for Branch Template

Any advice?


回答1:


Sitecore items can't inherit from values set in a branch template. They will always default to the values in the original template's standard values. This is a limitation of branches.

If you upgrade to the latest version of WeBlog (the new name for EviBlog), you should be able to create a new Entry templates for each blog, with their own standard values and presentation details.

Depending on how complex the differences are, another option would be to use Conditional Rendering within your standard values.

  1. Create new personalization rules under /sitecore/system/Marketing Center/Personalization/Rules for each website
  2. Use the built-in condition "where website name compares to value" to make the rule apply to the specific website
  3. In the rendering references of your standard values, apply the personalization rule to make renderings only appear for specific sites

More info on Conditional Renderings here:

http://www.sitecore.net/Community/Technical-Blogs/John-West-Sitecore-Blog/Posts/2010/11/Sitecore-Rules-Engine-and-Conditional-Rendering.aspx



来源:https://stackoverflow.com/questions/8319956/branch-template-and-consistent-layout-with-sitecore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!