List of private blocks on a pagetype

Vote:
 

Hi again,

I am trying to add a list of blocks to a pagetype. Is that possible ? 

Adding one block to a pagetype is offcourse no problem:

public virtual MyBlockType MyBlock { get; set; }

 

Is it possible to add Multiple blocks (again, like a LinkItemCollection) to  pagetype?

 

 

#63714
Nov 27, 2012 14:05
Vote:
 

EPiServer 7 do not support lists of blocks stored locally on a page type, only typed single instances (a block is basically a group of properties when added to a page type so the same restrictions as properties apply).

#63717
Nov 27, 2012 15:01
Vote:
 

I suspected that.. Any suggestions on how to solve this problem?

#63719
Nov 27, 2012 15:23
Vote:
 

Depends, what is the problem you are trying to solve?

#63720
Nov 27, 2012 15:25
Vote:
 

We have an articlepage,rendered as an onepager, where the editors can add various content. For instance: a gallery, any number of textcontent etc.

Our first thought was to solve this through blocks. This could however lead to a very large "blocktree" for the editors to manage, given that there could be quite a lot of articles on the page. Hence a solution like LinkItemCollection would be preferable.

 

Any thoughts?

#63721
Nov 27, 2012 15:30
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.