kentico_ondrejv
-
4/29/2011 3:15:25 AM
RE:Custom macro for "Select top N documents"
Hello,
that's strange. Therefore, I'd like to ask you to check and perform the following things:
1) Don't you use the Query Repeater webpart (Repeater with custom query)? I can see that you are using the Latest News webpart, but just to be completely sure :-)
2) Enable SQL debug by adding the <add key="CMSDebugEverything" value="true"/> key to the web.config file and go to the Site Manager -> Administration -> System -> Debug -> SQL Queries and check the actual Repeater query. Does it contain correct TopN condition?
3) Put a breakpoint to your custom macro to see, whether the application steps into it.
Please let me know your findings.
Best regards Ondrej Vasil
|