Skip to content

Instantly share code, notes, and snippets.

@5up3rman
Last active May 18, 2017 20:52
Show Gist options
  • Save 5up3rman/bd5154d6f438eba0d974b429dde3f9a5 to your computer and use it in GitHub Desktop.
Save 5up3rman/bd5154d6f438eba0d974b429dde3f9a5 to your computer and use it in GitHub Desktop.
Integrating Apple's Live Photo API into Sitecore
<?xml version="1.0"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<controlSources>
<source mode="on" namespace="Paragon.Foundation.LivePhoto.ContentEditor.Fields" assembly="Paragon.Foundation.LivePhoto" prefix="paragon" />
</controlSources>
<pipelines>
<renderField>
<processor type="Paragon.Foundation.LivePhoto.Pipelines.RenderField.GetLivePhotoValue,Paragon.Foundation.LivePhoto"
patch:after="processor[@type='Sitecore.Pipelines.RenderField.GetImageFieldValue, Sitecore.Kernel']" />
</renderField>
</pipelines>
<commands>
<command name="paragon:ChooseMovie" type="Paragon.Foundation.LivePhoto.Commands.WebEdit.ChooseLivePhotoMovie, Paragon.Foundation.LivePhoto" />
<command name="paragon:SetLivePhotoProperties" type="Paragon.Foundation.LivePhoto.Commands.WebEdit.SetLivePhotoProperties, Paragon.Foundation.LivePhoto" />
<command name="paragon:SetImageProperties" type="Paragon.Foundation.LivePhoto.Commands.WebEdit.SetImageProperties, Paragon.Foundation.LivePhoto" />
</commands>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment