0

Is this possible to store Media items in some other Content tree node in place of Media Library?

  • 1
    I believe it is because apparently SXA stores it in a different part of the tree... I've never looked into the implementation though. – jammykam Feb 6 '18 at 15:48
  • 1
    Last time I checked much of the Sitecore API relies on sitecore/media library existing in the path of items to determine that it's a media item. I would avoid going down this path. – Michael West Feb 7 '18 at 9:06
1

Since everything in the content tree is, at its root, a basic item, then yes, you should be able to store media items wherever you want. A few things to consider thought:

  • You need to be sure the insert options are set to cover all the possibilities you want to allow
  • You need to ensure your indexes are pointing to wherever you're storing your media items...look how the default implementation is done and expand from there

There may be other considerations, but if you test it out thoroughly in development, you should be able to find them all.

1

Yes, you can create media folder anywhere in content tree and upload media item in that folder. But, it's depends upon your requirement, sitecore by default consider media library as standard location to manipulate media items. You will not get your custom media location if you click on browse option for any image field. It will by default fallback to media library location, if there is no source path define for specific field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.