Try our conversational search powered by Generative AI!

How do I list files in v4.6x using Unified Files System?

Vote:
 

I need to list some files in a directory and I'm trying to do this by using <EPiServer:UnifiedFileTree>.
Following some examples, I find the following attribute:  RootPath='<%#CurrentPage["WebBaseURL"]%>'.

But what is the property WebBaseURL? Because it is not possible to select a directory, using "URL to abc" type.

I've looked at http://world.episerver.com/Documentation/Items/Tech-Notes/EPiServer-CMS-4/EPiServer-462/Unified-File-System/, but I'm none the wiser.

 

Does anyone have an working example of how I can list files in a directory using Unified Files System?

#36136
Jan 15, 2010 14:42
Vote:
 

RootPath is probably just the path to the directory, for example "/Global/Documents" or whater paths you have in your file manager (in EPiServer). Programmtic access is found in the technote.

#36137
Jan 15, 2010 16:12
* 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.