November Happy Hour will be moved to Thursday December 5th.

Multiple FileSummary.config?

Vote:
 

Hi,

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?

Thanks

#38626
Apr 15, 2010 1:23
Vote:
 

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" />

 

 

#38641
Apr 15, 2010 12:50
Vote:
 

Neat! Didn't know it was that simple, thank you!

#38644
Apr 15, 2010 17:30
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.