问题
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.
- Create new personalization rules under /sitecore/system/Marketing Center/Personalization/Rules for each website
- Use the built-in condition "where website name compares to value" to make the rule apply to the specific website
- 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