Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Nested Repeated inside webpart doesn't work View modes: 
User avatar
Member
Member
mattia.biancardi-gmail - 11/23/2012 11:28:19 AM
   
Nested Repeated inside webpart doesn't work
Hi,
I've insert this code inside a transformation used for a webpart repeater:
<cc1:CMSRepeater ID="DiconoDiNoiGallery" runat="server" ClassNames="custom.diconodinoigalleryitem" Path='<%# Eval("NodeAliasPath")+ "%" %>'
TransformationName="custom.diconodinoigalleryitem.DiconoDiNoiGallery" OrderBy="NodeOrder ASC">
</cc1:CMSRepeater>

I've a node structure like this:
- Document
- Repeated document 1
- Nested Repeated Document 1
- Nested Repeated Document 2
- Repeated document 2
- Nested Repeated Document 3
- Nested Repeated Document 4

Repeater webpart is inside "Document" node.


I've try to change Path to /% or I've add WhereCondition='NodeParentID=<%# Eval("NodeID") %>'

Nothing seems to work.

Always the nested repeater show me all "Nested Repeated Document" and not only the item under the repeated item.



User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/24/2012 12:04:47 AM
   
RE:Nested Repeated inside webpart doesn't work
Hi,

The nested repeater is inheriting the path from the parent control (assuming, the ID is set on the parent repeater correctly).

Anyway, I think it would be easier using hierarchical transformations to display the structure.

Best regards,
Juraj Ondrus