Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Web Part - Query View modes: 
User avatar
Member
Member
leem - 7/22/2009 8:36:27 AM
   
Web Part - Query
hi,

I have a document called C which is a child of document B which is a child of document A. Document C also has a silbing, document D. Documents A, B and C/D are different document types but are linked together in the tree hierarchy. Is there a way via a web parts query that I can return only Documents C and D when on Document B using a Path Macro?

--DocumentA
|---DocumentB
|-----DocumentC
|-----DocumentD

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 7/29/2009 1:47:31 AM
   
RE:Web Part - Query
Hi,

supposing the repeater (webpart) is placed on DocumentB template, you could either just set "Document Type" field in the webpart Properties dialog / Content Filter group to the document type of documents C and D only, or if the tree structure is dynamic (e.g. more occurences of this structure), you could also use path expression like "{0}/%" , because the static Path="DocumentBname/%" wouldn't work here.
Some more info can be found at DevGuide AppendixA - Path expressions

Best regards,
Zdenek C.