Sitecore / XM-Cloud-Introduction

A repository containing the code for the MVP & SUGCON Sites, powered by XM Cloud
47 stars 51 forks source link

Feature: Logo Component #376

Closed cheeto-bandito closed 7 months ago

cheeto-bandito commented 7 months ago

Description / Motivation

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. image

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

Checklist: