Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Sharepoint Framework中通过资产配置创建的Sharepoint列表中隐藏标题列?_Sharepoint_Spfx_Sharepointframework - Fatal编程技术网

如何在Sharepoint Framework中通过资产配置创建的Sharepoint列表中隐藏标题列?

如何在Sharepoint Framework中通过资产配置创建的Sharepoint列表中隐藏标题列?,sharepoint,spfx,sharepointframework,Sharepoint,Spfx,Sharepointframework,安装部署的Web部件后,我需要sharepoint自动创建一个隐藏标题栏或更改名称的列表。要在spfx中为某些项目提供elements.xml,请检查以下步骤: 若要使标题列不必显示和隐藏,您需要添加内容类型,列表将在其上生成,并且在此CT中,您需要将标题列引用为隐藏和不必显示,如下所示: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint

安装部署的Web部件后,我需要sharepoint自动创建一个隐藏标题栏或更改名称的列表。

要在spfx中为某些项目提供elements.xml,请检查以下步骤: 若要使标题列不必显示和隐藏,您需要添加内容类型,列表将在其上生成,并且在此CT中,您需要将标题列引用为隐藏和不必显示,如下所示:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <ContentType ID="0x010019DBC07DC85E425FAC393333BE5C537A" 
               Name="SomeCT" 
               Group="SomeGroup" 
               Description="Some CT" 
               Inherits="FALSE" Version="0">
    <FieldRefs>
      <FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" Hidden="TRUE" Required="FALSE" />      
    </FieldRefs>
  </ContentType>
</Elements>