Portal Engine
Version 2.x > Portal Engine > Issue with repeaters and default queries View modes: 
User avatar
Member
Member
matt - 6/27/2007 2:51:38 AM
   
Issue with repeaters and default queries
I don't know if this is intended or not but when using a repeater without a custom query the default "live" query chose (selectversions) appends a where clause checking to see if the documents to be listed are within the same treenode as the document being displayed. This overwrites the use of the 'Path' option of the repeater webpart making it useless and forcing us to either place the content to be displayed under the current document or write a cutom query to display it.

For example...

I have a "Shared Content" folder that contains Press Releases. This folder sits at level 1 of the site. I have a News section that has a Press Releases page (/News/Press Release/). I place a repeater on the Press Release page and point the path option to "/Shared-Content/Press-Releases/%". Because the selectversions query automatically appends "AND (NodeAliasPath LIKE N'/News/Press-Releases')" the Press Release will never be displayed. I have no choice but to put the Press Release under that same tree node or write a custom query.

Was this intentional?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/13/2007 11:32:36 AM
   
RE:Issue with repeaters and default queries
Could you please tell me what is your Kentico version? I tried to reproduce the issue on my PC but everything works fine. Maybe there are some other settings that are causing this problem.

Could you please send us an e-mail to support@kentico.com with the site export package? Thank you.

Juraj Ondrus,
Kentico Software


User avatar
Member
Member
matt.mclarty@imaginuity.com - 7/17/2007 5:13:56 PM
   
RE:Issue with repeaters and default queries
This is on version 2.1d (and all prior back to 2.0, I believe)

I wrote a custom repeater webpart to alleviate the problem. I will try to send an export of the site when I get more free time.

User avatar
Kentico Support
Kentico Support
juraj.ondrus@kentico.com - 7/18/2007 11:20:50 AM
   
RE:Issue with repeaters and default queries
Thank you, the export package will be very helpful. I tried to reproduce it also in 2.1d version and everything works fine.