Is it somehow possible to use multiple FileSummary config files, and specifying which one to use for each virtualpath provider? What I really want to achieve is that editors should be presented with different meta-data options when, for instance, browsing "~/Documents" vs "~/Downloads" in the File Manager. We might have certain meta-data properties for PDFs/docs, like the document's language etc; but such meta-data would be completly irrelevant (and confusing for an editor) when uploading pure data-files (executables etc) to the "~/Downloads" path, and vice versa.
So my initial thought was if we could utilize multiple FileSummary configs, if possible at all. Otherwise, do you have any ideas on how to achieve this?
You can use a unique CustomFileSummary for each Virtual Path Provider. If no value is specified it will fallback to the value on of the customFileSummary attribute on the virtualPath tag.
Just add the attribute customFileSummary=" to each add-tag in your web.config!
<virtualPath customFileSummary="~/FileSummary.config"> <providers> <add customFileSummary="~/OtherFileSummary.config" showInFileManager="false" virtualName="Page Files" virtualPath="~/PageFiles/" name="SitePageFiles" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" physicalPath="C:\EPiServer\VPP\test.local\PageFiles" />
Neat! Didn't know it was that simple, thank you!