Forum Discussion
Bhavpreet Bains
Mar 21, 2017Iron Contributor
Content Search WebParts Picture URL
Hello, I am working on a Content Search Web Part (on SharePoint Online) to fetch some sites. They are displyed as 3 lines on right and picture on left. The pictureURL uses 'SiteLogo' option to d...
Bhavpreet Bains
Mar 27, 2017Iron Contributor
Thank for the response.
However, I don't think creating a custom item display template will do it.
I just want to know how can I fetch the site initials with color background logo (default logo of the sharepoint site) for a regular SharePoint site, which doesn't have any logo uploaded.
According to me, it is the property mapping for Picture URL. I am not sure which one of the attributes will provide me the desired results.
I am currently mapping 'SiteLogo' to the Picture URL which displays the site logo (if uploaded) and grey image(if not uploaded) for regular SharePoint site and color background with initials (if no logo uploaded) for O365 groups.
However, I don't think creating a custom item display template will do it.
I just want to know how can I fetch the site initials with color background logo (default logo of the sharepoint site) for a regular SharePoint site, which doesn't have any logo uploaded.
According to me, it is the property mapping for Picture URL. I am not sure which one of the attributes will provide me the desired results.
I am currently mapping 'SiteLogo' to the Picture URL which displays the site logo (if uploaded) and grey image(if not uploaded) for regular SharePoint site and color background with initials (if no logo uploaded) for O365 groups.
Mar 27, 2017
If no logo is uploaded you might end up with a blank url. Hence some logic that is needed
If logo =null then
logourl = urltodefaultlogo
If logo =null then
logourl = urltodefaultlogo