我想在Sitecore配置文件的现有节点中插入一些新节点。
如何修补以下的默认行为:
<event name="publish:end">
<handler type="Sitecore.Publishing.HtmlCacheClearer, Sitecore.Kernel" method="ClearCache">
<sites hint="list">
<site>website</site>
</sites>
</handler>
</event>
使用:
<event name="publish:end">
<handler type="Sitecore.Publishing.HtmlCacheClearer, Sitecore.Kernel" method="ClearCache">
<sites hint="list">
<site>english</site>
<site>chinese</site>
<site>german</site>
<site>spanish</site>
<site>french</site>
<site>italian</site>
<site>japanese</site>
<site>portuguese</site>
<site>russian</site>
<site>website</site>
</sites>
</handler>
</event>
答案 0 :(得分:7)
<event name="publish:end">
<handler type="Sitecore.Publishing.HtmlCacheClearer, Sitecore.Kernel" method="ClearCache">
<sites hint="list">
<patch:delete />
</sites>
<sites hint="list">
<site>english</site>
<site>chinese</site>
<site>german</site>
<site>spanish</site>
<site>french</site>
<site>italian</site>
<site>japanese</site>
<site>portuguese</site>
<site>russian</site>
<site>website</site>
</sites>
</handler>
</event>