Try our conversational search powered by Generative AI!

Get a list of a certain published block type

Vote:
 

I have a current episerver site that uses a map to show locations of branchs. I believe that each branch is a page (though not visable other that a list in another page), with this page is the longitude and latitude.

these are then passesd to another page that displays them on a map.

We need to re build this,  can this be done using blocks rather than pages?

so each block would hold all the branch info and then the map block would pull all the loction fields in?

#180364
Jul 07, 2017 16:15
Vote:
 

Yes, that can be done using blocks. You can also take a look at https://world.episerver.com/blogs/per-magne-skuseth/dates/2015/11/trying-out-propertylistt/ in case you want to avoid "blocks inside blocks". 

#180370
Jul 07, 2017 17:04
Vote:
 

have you any documatation on how i would get all instances of the block type? i can seem to find much.

not sure the property list would work as there is a lot of infor to be display in the brach block? and only two parts for the locations block.

#180371
Jul 07, 2017 17:08
Vote:
 

Check Erik's answer: https://world.episerver.com/forum/developer-forum/Developer-to-developer/Thread-Container/2015/8/how-to-get-content-from-contentareaitem/

#180372
Edited, Jul 07, 2017 17:15
* 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.