![]() PropertiesJson. PropertiesJson.Property("serverProcessedContent").Remove() Var item = GetQuickLinkItem(linkIndex + 2, webInfo, qlink) SearchablePlainTexts.Add($"", qlink.ImageUrl) JObject componentDependencies = new JObject() ĬomponentDependencies.Add("layoutComponentId", "706e33c8-af37-4e7b-9d22-6e5694d92a6f") įor (var index = 0 index < quickLinkItems.Count index++) JObject searchablePlainTexts = new JObject() Static JObject GetQuickLinksServerProcessedContent(List quickLinkItems) Then we need to update GetQuickLinksServerProcessedContent: I removed renderInfo, flags, activity and hasInvalidUrl, then added functionality to allow us define the link’s icon. Var fabricReactIcon = new JProperty("fabricReactIcon", iconProperty) Adding Quick Links to a Web Part Follow the steps below to add quick links to a web part: Edit your page from the right top of the page Hover your cursor above or below an existing web part You will see a line with circled + as shown in the below screen Either search or scroll for quick links. Var iconProperty = JObject.FromObject(new If(quickLinkItem.ThumbnailType = ThumbnailType.Icon) Var image = new JProperty("image", imageObject) If(quickLinkItem.ThumbnailType = ThumbnailType.Image) WebId = external ? blankGuid : webInfo.WebId, SiteId = external ? blankGuid : webInfo.SiteId, ThumbnailType= quickLinkItem.ThumbnailType, String blankGuid = new Guid().ToString() Static JObject GetQuickLinkItem(int quickLinkItemId, WebInfo webInfo, QuickLinkItem quickLinkItem)īool external = quickLinkItem.Url != '/' & !($" StringComparison.CurrentCultureIgnoreCase) "siteId": "b9d0e8ec-e67e-46cc-8a43-c2a32bcdec2c"Īlthough there are many properties in web part data you don’t need to be worried about all of them, so first I update QuickLinkItem.cs: "description": "Add links to important documents and pages.",
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |