Technical support This forum is closed.
Version 1.x > Technical support > BUG: CMSRepeater calls wrong base method View modes: 
User avatar
Member
Member
wtijsma - 2/7/2005 10:19:48 AM
   
BUG: CMSRepeater calls wrong base method
Hi Petr,

in the CMSRepeater, the wrong base member is called from the OnPreRender

protected override void OnPreRender(EventArgs e)
{
LoadData();
base.OnLoad(e);
}

should be

protected override void OnPreRender(EventArgs e)
{
LoadData();
base.OnPreRender(e);
}

User avatar
Member
Member
wtijsma - 2/7/2005 10:24:37 AM
   
Re: BUG: CMSRepeater calls wrong base method
How can I limit the results of a CMSRepeater (TOP 5)?

User avatar
Guest
admin - 2/7/2005 3:07:34 PM
   
Re: BUG: CMSRepeater calls wrong base method
Hi Wiebe,

This is not directly supported in the CMSRepeater. However, it's possible to do that.

You need to write your own query in the Development module -> Document Template -> Queries and use it in the QueryRepeater control.

When writing the query, you can use the SelectByPath query of the appropriate document template and modify it so that it returns only TOP 5 records.

Thank you.

User avatar
Member
Member
wtijsma - 2/8/2005 4:19:42 PM
   
Re: BUG: CMSRepeater calls wrong base method
Ah good one...

User avatar
Guest
admin - 2/7/2005 2:57:13 PM
   
Re: BUG: CMSRepeater calls wrong base method
Hi Wiebe,

Thank you for notifying us about this bug. We have immediately changed it in our code, so it will be fixed in the nearest release.

Thank you.