Skip to content
Custom mediaprovider which allows for encoding replacements specifically for media items
C#
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Boondoggle.Sc.MediaProvider
.gitattributes
.gitignore
Boondoggle.Sc.MediaProvider.sln
README.md

README.md

Boondoggle Custom MediaProvider

With support from Provided by Boondoggle

This allows you to define custom encoding parameters for media items.

<encodeMediaReplacements>
    <replace mode="on" find="&amp;" replaceWith=",-a-," />
    <replace mode="on" find="?" replaceWith=",-q-,"/>
    <replace mode="on" find="/" replaceWith=",-s-,"/>
    <replace mode="on" find="*" replaceWith=",-w-,"/>
    <replace mode="on" find="." replaceWith=",-d-,"/>
    <replace mode="on" find=":" replaceWith=",-c-,"/>
    <replace mode="on" find=" " replaceWith="%20"/>
</encodeMediaReplacements>

Source: http://blog.verswijver.com/custom-mediaprovider-removing-the-dashes/

Information

  • Nuget is used for any dependencies to Sitecore
  • As minimal outside dependencies are used (no ORM mapper for example)
  • Enjoy!
You can’t perform that action at this time.