sharepoint - 如何隐藏 Sharepoint Framework 中 Asset Provisioning 创建的 Sharepoint 列表中的标题列?
问题描述
安装部署的 webpart 后,我需要 sharepoint 自动创建隐藏标题列或更改名称的列表。
解决方案
为了在 spfx 中使用 elements.xml 提供一些项目,请检查以下步骤: https ://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/provision-sp- assets-from-package 要使标题列不需要和隐藏您需要添加将在其上构建列表的内容类型,并且在此 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>
推荐阅读
- javascript - 第一次通过后循环内容脚本中断 - Chrome 扩展
- python - 运行 model.fit() 时的 tf.keras (RNN) 层问题
- python - 在 Python 2.7 中将 SameSite 参数添加到 cookie
- visual-studio-2019 - 如何在将 SSDT 与 Visual Studio 2019 结合使用时数据库发生更改时更新 SSAS 表格模型?
- webpack - 具有条目依赖的代码拆分但出现错误,我的 webpack 版本是 4.41.6(目前最新)
- javascript - 与 Greensock 反应 - 请 gsap.registerPlugin(CSSPlugin, CSSRulePlugin)
- php - curl使用php将文件从服务器放到扩音器
- python - WebDriverError:断开连接:无法连接到渲染器(python)
- c++ - 使用 Bazel 为 iOS 构建一个仅标头框架(供原生 iOS 实现使用)
- javascript - 你能从你在谷歌文档中创建的表中创建一个变量吗?