Developer forum

Forum » Feature requests » Nested itemlists

Nested itemlists

Lars Larsen
Reply

Hi,

It would be so nice if it was possible to nest itemlists. In this way it would be possible to have eg. one item (SpotBoxRow) holding one or many SpotBoxCols which could hold one or many Spotboxes. I really miss this concept when creating pages as items:

SpotBoxRow
  SpotBoxCol
    Spotbox

When rendering the items in the frontend it would just be two nested loops.

I am aware of that circular references could be a problem. But that could be up to the developer to handle, but of course it would be nice if the system checked for this when creating the items.

 

 

 

 


 

 

 

 

 

 


Replies

 
Asger Munkholm Højfeldt
Reply

Hi Lars,

As I read your request you are already able to do this by using item lists. where A contains a list of B which contains a list of C etc. Am I not getting your point?

//Asger

 
Lars Larsen
Reply

Hi Asger

The problem arises when I try to nest items that contains itemlist fields.When I try I get this errormessage:

"The item type contains item list fields. It is not allowed to use item list fields for item lists. Deselect Item List in the Item type settings."

 
Lars Larsen
Reply

Any news on this topic?

 
Nicolai Høeg Pedersen
Reply

No - it has been made like this to avoid potential circular references.

Will have someone look into it for a later release.

BR Nicolai