Rather than repurposing the Image component for the SUGCON logo, I've cloned Image and created a Logo component. This component accepts a datasource that lives under: $site/Data/Images/Logos/*|$sharedSite/Data/Images/Logos
I've also created a rule that adds the Logo Folder to the insert options of the Images folder.
I've added this component to the shared Header and Footer partial designs without specifying the datasource. @lovesitecore if you'd like me to be more explicit with the datasource, I'm happy to update the PR.
How Has This Been Tested?
I tested this functionality by creating the Sitecore items, serializing and then downing my docker instance. After cleaning the install, I re-upped my instance to ensure that there were no serialization problems and confirmed the expected items in my local instance.
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] I have read the Contributing guide.
[x] My code/comments/docs fully adhere to the Code of Conduct.
[x] My change is a code change.
[ ] My change is a documentation change and there are NO other updates required.
Description / Motivation
Rather than repurposing the
Image
component for the SUGCON logo, I've clonedImage
and created aLogo
component. This component accepts a datasource that lives under:$site/Data/Images/Logos/*|$sharedSite/Data/Images/Logos
I've also created a rule that adds the Logo Folder to the insert options of the
Images
folder.I've added this component to the shared
Header
andFooter
partial designs without specifying the datasource. @lovesitecore if you'd like me to be more explicit with the datasource, I'm happy to update the PR.How Has This Been Tested?
I tested this functionality by creating the Sitecore items, serializing and then downing my docker instance. After cleaning the install, I re-upped my instance to ensure that there were no serialization problems and confirmed the expected items in my local instance.
Types of changes
Checklist: