Vitual Path Providers in Episerver 8 (or 9)

Vote:
 

Hello everyone,

In my journey to migrate Episerver 6 to 8 i stumble on quite some challenges, one of them is:

In the old Episerver 6 you were able to create extra paths to access in the Media explorer. We did this by doing this:


name="EPiServerNativeTemplateThemes"
type="EPiServer.Web.Hosting.VirtualPathNativeProvider,EPiServer"
virtualName="Template Themes"
showInFileManager="true"
bypassAccessCheck="false"
indexingServiceCatalog="Web1" />

In the old site i have 6 definitions like this to folders, completely outside the website.

It worked like a charm in 6, but now i'm struggling to get it working in the new Episerver.  

Can anyone help to get this part up and running? I know however that Episerver 6 had 'Starting points'  in the Media tree, and i see Episerver 8 no longer has them. Ideally i would still want them, however if not possible i would still love to be able to use these virtualpaths, to access files on those locations.

Thanks in advance,

Ron

#139499
Oct 05, 2015 11:40
Vote:
 
#139522
Oct 05, 2015 22:38
Vote:
 

Since EPiServer 7.5 you don't use VPPs to store files. Instead EPiServer stores files as "Media" which is a kind of content in the same way as Blocks and Pages are content.

I would recommend that you look into having a ContentProvider instead. Johan Björnfot has an example which might do exactly what you're looking for?

http://world.episerver.com/blogs/Johan-Bjornfot/Dates1/2014/8/LocalMediaProvider/

There are also some good getting-started posts about this

http://world.episerver.com/blogs/Per-Magne-Skuseth/Dates/2014/11/content-providers-101--part-i-introduction-initialization-ui--identity-mapping/

http://world.episerver.com/blogs/Per-Magne-Skuseth/Dates/2014/11/content-providers-101--part-ii-from-read-only-to-writable/

http://world.episerver.com/blogs/Per-Magne-Skuseth/Dates/2014/11/content-providers-101--part-iii-finishing-touches/

#139523
Oct 05, 2015 22:39
* 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.