I have question. I trying build custom layout for my napili community but In different communiy I need different logo.
Could I get this logo via attribute or something else ?
I added logo to the communities and try this code but steel I don't have logo ...
public static Map<String,String> getBranding() {
Map<String,String> branding = new Map<String,String>();
Id communityId = Network.getNetworkId();
List<CustomBrand> CustomBrandId = [ select id from CustomBrand where ParentId =: communityId Limit 1];
for(CustomBrandAsset asset : [select id, AssetCategory, CustomBrandId, TextAsset from CustomBrandAsset where CustomBrandId =: CustomBrandId[0].Id]) {
branding.put(asset.AssetCategory,asset.TextAsset);
}
return branding;
}
and my output is JSON
"objectBranding" : {
"MotifZeronaryColor" : "#51606E",
"MotifPrimaryColor" : "#1797C0",
"MotifSecondaryColor" : "#51606E",
"MotifTertiaryColor" : "#DDE4E9",
"MotifQuaternaryColor" : "#B1BAC1",
"MotifZeronaryComplementColor" : "#FFFFFF",
"MotifPrimaryComplementColor" : "#FFFFFF",
"MotifTertiaryComplementColor" : "#222222",
"MotifQuaternaryComplementColor" : "#222222"
}