Technical support This forum is closed.
Version 1.x > Technical support > QueryRepeater- Displaying Latest HowTo View modes: 
User avatar
Member
Member
Kim Abela - 3/29/2006 8:54:00 AM
   
QueryRepeater- Displaying Latest HowTo
Hi,

I'am using the QueryRepeater to display the latest news published and I need to know how to enforce this control just to show the latest 3 news articles published instead of showing them all in the home page.

Thank you,

Kim

User avatar
Member
Member
ta5ae - 3/29/2006 10:20:40 AM
   
Re: QueryRepeater- Displaying Latest HowTo
If you use this control with the QueryName cms.news.selectlatest - it should show the top 3.

Good luck,

Tess

User avatar
Member
Member
Kim Abela - 3/29/2006 3:19:07 PM
   
Re: QueryRepeater- Displaying Latest HowTo
Thank you ta5ae for your reply. Ok, but what if I want to show the latest 4 or 5 instead of the standard 3?

Thank you,

User avatar
Member
Member
ta5ae - 3/29/2006 3:24:40 PM
   
Re: QueryRepeater- Displaying Latest HowTo
If you go to the the Developement Tab you can amend queries from there.

Expand Document templates > Application : CMS > News > Queries.

From here you can edit the selectlatest query and change the number of items returned.

Change the number 3 to your desired number.

For example: SELECT top 5 ...




User avatar
Member
Member
Kim Abela - 3/29/2006 4:14:58 PM
   
Re: QueryRepeater- Displaying Latest HowTo
ta5ae, I don't know what to say more than thank you very much indeed for your support. It works. But still I have another question which related to the Bizforms. Why when i'm creating a new form the system gives me GO or OK button instead of submit? How I can change the button label?

Thank you in advance,

Kim

User avatar
Member
Member
ta5ae - 3/29/2006 4:40:16 PM
   
Re: QueryRepeater- Displaying Latest HowTo
Not an option I have changed myself.

I imagine it is tucked away in a resx files somewhere. I will leave you in the hands of an expert, for a qualified response.

Tess

User avatar
Guest
admin - 3/29/2006 8:54:38 PM
   
Re: QueryRepeater- Displaying Latest HowTo
Hi Kim,

Thank you for your question (and thanks Tess for the answering the first question!).

You can change this globally in the <web project>\cms_resource\Kentico-CMS-KentiForm.resx file - search for OK.

I hope this helps.

Best Regards,