use Title field for LinkTitle

This commit is contained in:
Abderahman88 2022-01-13 21:43:22 +01:00
parent 4472dc3385
commit 635132ef23
1 changed files with 2 additions and 1 deletions

View File

@ -76,7 +76,8 @@ export default class AdvancedPagePropertiesWebPart extends BaseClientSideWebPart
fi.forEach((f) => {
if (!f.FromBaseType && !f.Hidden && f.SchemaXml.indexOf("ShowInListSettings=\"FALSE\"") === -1
&& f.TypeAsString !== "Boolean" && f.TypeAsString !== "Note") {
this.availableProperties.push({ key: f.InternalName, text: f.Title });
const internalFieldName = f.InternalName == "LinkTitle" ? "Title" : f.InternalName;
this.availableProperties.push({ key: internalFieldName, text: f.Title });
Log.Write(f.TypeAsString);
}
});