Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个 EPiServer 5 项目,我需要使用来自其他属性的数据填充我的页面类型的元描述属性。例如,将正文的第一句话用作元描述"
如果编辑器将元描述留空,则应该这样做。有关如何解决此问题的任何帮助?
非常感谢。
在 EPiServer 附带的示例项目 PublicTemplates(或 EPiServer 6 R2 及更高版本的 Alloy 演示站点)中有一个代码示例如何从主体中回退和提取文本。查看 Header.ascx.cs 文件。
连接到 DataFactory PageSave 事件并在保存之前更改值。