Continuing on this series of a useful Sitecore PowerShell scripts that you will need while working on a Sitecore Audit, as setting a source for image fields is a best practice when working with Sitecore image field, in this post will share a PS script that will help you find any image field that has no source configured which will save you a lot of time to find these instances, interested, keep reading!
The source field on images in data templates should be set to locations in the image library. This is good practice as it improves usability for Content Editors when selecting images and improves the maintainability of the media library.
Following you will find a PS script that go through templates and find image fields with no data source set:
Hopefully the above helps you on your Audit, and make it easier and faster to verify this point, happy auditing!
No comments:
Post a Comment