Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > repeater where clause... View modes: 
User avatar
Member
Member
bmorton-fhtc - 2/19/2009 4:34:51 PM
   
repeater where clause...
I want to limit a repeater's returned items by implementing a where clause.

Currently, I can put into the where box
DocumentName = 'Power Plant Technology Instructor'

and it will limit the returned item to one document named 'Power Plant Technology Instructor'


I would like to replace that static string with the name of the current document. I have been working with <%# GetDocumentUrl() %>, but I can't get the result:

/Information-For/Faculty---Staff/Employment-Information/Power-Plant-Technology-Instructor.aspx

to turn into a string to assign to DocumentName.

Has anyone done this before?

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 2/26/2009 6:41:34 AM
   
RE:repeater where clause...
Hello,

You can set following value into WhereCondition property:

DocumentName = {%DocumentName%}

Best Regards,

Martin Dobsicek