ASPX templates
Version 4.x > ASPX templates > Nested CMSRepeater.. View modes: 
User avatar
Member
Member
maurizio.ziraldo-libero - 5/4/2009 9:08:40 AM
   
Nested CMSRepeater..
Hi All,
I have an hierarchical structure with some contents of the same document type, like this:

- Content 1 (type1, Transf1)
- Content 2 (type2, Transf2)
- Content 3 (type2, Transf3)
- Content 4 (type2, Transf3)
- Content 5 (type1, Transf1)

In the page template I put a CMSRepeater with Path="/%" on document type "type1" with transformation "Transf1"; in tranformation "Transf1" there is a nested CMSRepeater on "type2" with transformation "transf2"; in transformation "Transf2" there is a nested CMSRepeater on "type2" with transformation "transf3".
I would obtain this result printed on page:

- Content 1
- Content 2
- Content 3
- Content 4
- Content 5

but I obtain this:

- Content 1
- Content 2
- Content 3
- Content 4
- Content 3
- Content 4
- Content 5

In other words, transformation "transf2" is applied also on Content 3 and Content 4 under Content 2 because they have the same type.
Is there a way to obtain the correct tree result, without creating a new document type for Content 3 and 4?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 5/12/2009 8:40:11 AM
   
RE:Nested CMSRepeater..
Hi,

All of the documents are on the same level? the nested repeaters are usually used to display the tree structure. Moreover, the easiest way is to create new document types for the other two documents.

Best Regards,
Juraj Ondrus