Why the description of Page Layout is not showing

本文深入探讨了在自定义页面布局作为功能的一部分时,'Description'属性如何被替换为'MasterPageDescription'。通过XML元数据详细展示了配置过程,包括文件路径、类型、标题、描述、内容类型、预览图像和关联内容类型。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

When custom page layouts as part of a feature, the internal name for "Description" is "MasterPageDescription".
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="MasterPageGallery" Path="MasterPageGallery" Url="_catalogs/masterpage">
    <File Url="ApplicationLayout.aspx" Type="GhostableInLibrary">
      <Property Name="Title" Value="Application Layout" />
      <Property Name="MasterPageDescription" Value="Use this layout to include other web applications inside SharePoint" />
      <Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;" />
      <Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ApplicationLayout.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/CustomPageLayout.png" />
      <Property Name="PublishingAssociatedContentType" Value=";#$Resources:cmscore,contenttype_articlepage_name;;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900242457EFB8B24247815D688C526CD44D;#"/>
    </File>
</Module>
</Elements>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值