Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Nesting Related Documents Repeater in Smart Search Results transformation View modes: 
User avatar
Member
Member
bryson.justus-chickasaw - 12/27/2012 9:45:34 AM
   
Nesting Related Documents Repeater in Smart Search Results transformation
I would like to list related documents with my smart search results. I have been attempting to nest a related documents repeater in the transformation of the smart search results.

Is this possible or would this be possible with a Custom Transformation Method instead of a nest repeater?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/28/2012 12:42:25 AM
   
RE:Nesting Related Documents Repeater in Smart Search Results transformation
Hi,

Related documents is a web part and only controls are allowed to be nested in a transformation. So, you can try to use the CMS Repeater control and set it to display the related documents based on the relationship settings (Related documents web part is simply a pre-defined repeater web part).

Or, using a custom functions in the transformation is also a good way.

Best regards,
Juraj Ondrus

User avatar
Member
Member
bryson.justus-chickasaw - 12/28/2012 9:52:01 AM
   
RE:Nesting Related Documents Repeater in Smart Search Results transformation
I have attempted to nest the CMS Repeater control and use relationship settings but the CMS Repeater control ignores the relationship settings when it is nested in the transformation.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/31/2012 5:12:04 AM
   
RE:Nesting Related Documents Repeater in Smart Search Results transformation
Hi,

What are the exact settings of the parent and nested controls? Have you tried settings DelayedLoading=true for the nested repeater?

Best regards,
Juraj Ondrus

User avatar
Member
Member
bryson.justus-chickasaw - 12/31/2012 8:14:07 AM
   
RE:Nesting Related Documents Repeater in Smart Search Results transformation
I was able to get this to work by nesting a repeater that then had a nested repeater on its transformation that had the relationship attributes.

Yes I have DelayedLoading=true. Also had to use
public string ChickasawRelatedForms(object NodeGUID){
repElemForm.WhereCondition = String.Format("NodeGUID = '{0}'", NodeGUID);
return repElemForm.WhereCondition;
}

protected void Page_PreRender(object sender, EventArgs e)
{
repElemForm.ReloadData(true);
}

to get the NodeGUID to use in my WhereCondition.

Does that sound like the best solution for this?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/2/2013 2:58:50 AM
   
RE:Nesting Related Documents Repeater in Smart Search Results transformation
Hi,

I am glad it is working - sounds and looks good too. I do not see any issues.

Best regards,
Juraj Ondrus