Developer forum

Forum » CMS - Standard features » Recursive File Publisher

Recursive File Publisher

Adrian Ursu
Reply

Hi Guys,

I need to list the content of a folder with folderd/subfolders/files without navigating in it (like the default Filepublisher behavior).

Can it be done with File publisher? Is there any other solution?

The result I am expecting should look like this:

<PARENT_FOLDER>

  • Subfolder 1
    • File 1_1 (<SIZE>, <EXTENSION>)
    • File 1_2 (<SIZE>, <EXTENSION>)
  • Subfolder 2
    • File 2_1 (<SIZE>, <EXTENSION>)
    • File 2_1 (<SIZE>, <EXTENSION>)
  • File 1 (<SIZE>, <EXTENSION>)

I am planning on using Razor.

Thank you,

Adrian

 

 


Replies

 
Nicolai Høeg Pedersen
Reply

You can easily do that in a Razor template

See this sample: https://msdn.microsoft.com/en-us/library/bb513869.aspx

 

You must be logged in to post in the forum