World is now on Opti ID! Learn more


Aug 17, 2010
  5758
(0 votes)

Irritated at Page Files in EPiServer CMS?

Do you as so many others going mad because you always get asked if you are going to create a new folder when you open the file manager in EPiServer CMS? You should know that you are not alone, but it's actually very easy to change.

 

This Blog post is translated with Google Translate. If you understand Swedish, please read the post here.

 

skapa-katalog First some facts about the file manager and shell-side with the directory, Global Files, and Documents. There are folders that you probably recognize even in your solution. The set is made with these default directories in the file manager is designed to show examples that you can work with different folders in EPiServer CMS. You should see them as a great example, and absolutely no need to use. The idea is that you should adapt this for each installation so you may as efficiently as possible working with files on the site.

How should you choose to work?

Page Files - This is a folder that is linked to a specific page. The advantage of this is that the management of hand even when their penetration of the folder. As if you eg put rights on the page, then the same rights that apply to the folder. If you delete a page, you can simply delete the folder belonging to the side. The disadvantage of working with the page directory is that you store the files which are only available for that page. For example, to have the same image at 10 pages, you need to upload and store the image 10 times. In general, it is quite rare that the benefits of this outweigh the disadvantages, but they are. It is common to combine this with a different folder structure.

Documents - is an example of a public folder structure where EPiServer version of the files is enabled. This means that an editor can handle multiple versions of the same document / file in File Manager. Through integration with MS Office, you can edit documents directly from the file manager and save it as a new version. This kind of folder is also common to store documents in if you are using EPiServer templates for Work Rooms.

vpp-native Global Files - was originally an example of a public folder structure where versioning was not activated. I saw that it was changed in my recent installation of CMS 6th Maybe it was a mistake or that the purpose is to show some examples that I did not know about. The benefits of not have versioning enabled, the folder structure is reflected exactly the same on the server. This means that I can create folders and move up and move files in Windows and it is reflected then in EPiServer file manager. Very useful in building a website or move from an old to new. One can not Windows keep moving around images that are linked to pages for which links are broken. Are you doing it in EPiServer file manager updated the pages that the files are on automatic.

The management of the various folders in the file is episerver.config (CMS 6) or web.config (CMS 5). Maybe not a file that anyone should be wasting in but I want this just to show how with a little cutting and pasting may not have to ask if I want to create a folder every time I open the file manager. The file is a part for the Virtual Path Provider. Where are all the folders that are handled by the system, regardless of whether they are visible to editors or not. Below is an extract from the file episerver.config.

vpp-before


The different folders are loaded in the order they are listed in this file and the editor is thus automatically in the folder that is listed first. If you then do not want you to always end up in the page's directory (the one with Virtual Name = "Page Files") and will ask if you should create a folder, you should simply ensure that the folder is not located at the top of the list of all available folders. A small easily select, CTRL + X and Ctrl + W removes a huge distractions.
My file looks like below instead and editors will get to the folder Images every time they open the file manager instead. Because I have also renamed Global Files to Images and aims to which store images without versioning. In the Documents folder should I put on my site frequently updated documents.

 

vpp.after


Be careful not to rename and change settings on the folders that you have had for a long time without having full control of what you do. Changes you the wrong way, all links to images and files to be broken.


Do you trust this?

Since I do not really have as good an eye on technology but just a little hobby is interested in what goes on behind the shell of course I can not swear if it is technically legal to do so here, but it solves my problem. I have only tested it all on the latest version of CMS 6, but I would guess that it works the same in the 5th and probably the later versions of the number 4. Read more about Virtual Path Provider, http://world.episerver.com/Documentation/Items/Tech-Notes/EPiServer-CMS-6/EPiServer-CMS-60/Virtual-Path-Providers/

Aug 17, 2010

Comments

Please login to comment.
Latest blogs
Make Global Assets Site- and Language-Aware at Indexing Time

I had a support case the other day with a question around search on global assets on a multisite. This is the result of that investigation. This co...

dada | Jun 26, 2025

The remote server returned an error: (400) Bad Request – when configuring Azure Storage for an older Optimizely CMS site

How to fix a strange issue that occurred when I moved editor-uploaded files for some old Optimizely CMS 11 solutions to Azure Storage.

Tomas Hensrud Gulla | Jun 26, 2025 |

Enable Opal AI for your Optimizely products

Learn how to enable Opal AI, and meet your infinite workforce.

Tomas Hensrud Gulla | Jun 25, 2025 |

Deploying to Optimizely Frontend Hosting: A Practical Guide

Optimizely Frontend Hosting is a cloud-based solution for deploying headless frontend applications - currently supporting only Next.js projects. It...

Szymon Uryga | Jun 25, 2025

World on Opti ID

We're excited to announce that world.optimizely.com is now integrated with Opti ID! What does this mean for you? New Users:  You can now log in wit...

Patrick Lam | Jun 22, 2025

Avoid Scandinavian Letters in File Names in Optimizely CMS

Discover how Scandinavian letters in file names can break media in Optimizely CMS—and learn a simple code fix to automatically sanitize uploads for...

Henning Sjørbotten | Jun 19, 2025 |