SaaS CMS has officially launched! Learn more now.

Accessing block by folder name


I am using the latest version of episerver through nuget package ii.e.
I have a requirement to access folder structure which contains shared blocks and each block has content area which contains nested block and are of type CategoryBlock.   A
My folder under Block asset pane are  
  Navigation Folder -> has one navigation block which has a content area, and each content area, has nested blocks. 

Question is to pick the Navigation Block from Navigation folder, Can I access the that directly rather than dragging this shared block to any page.
Basically I would like to access the block using the Folder structure i.e. Navigation Folder.
Can you suggest a code snippet please?
Hope i have explained it well. 


Sep 13, 2015 11:20

The media and folder structure is IContent. If you go into admin mode and set access rights you can navigate the strucutre to get the id of your folder.

I did a small tool last year for copying blocks from a folder wich might give you some help on the way. Im not sure wich version of EPi that I used so accessing folders and loading blocks might have changed.

Sep 13, 2015 19:44
Gaurav - Apr 20, 2023 7:39
page is not found which is shared above
* 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.