kentico_borisp
-
11/6/2008 10:09:56 AM
RE:Manually Create a CMSRepeater for files
Hello Bryan,
Thank you for your call.
I spoke about your requirement with our developer and CTO. Both of them think your approach is a bit complicated, if you are already doing this by yourself in the code behind. A simpler way would be to get the needed data also by you.
You can get the specified files (images) the same way as we do it. You can use the SelectNodes method to get the location and properties of images. You can take a look at our code e.g. ~\CMSTemplates\CorporateSiteASPX\ControlsExamples\BasicCalendar.aspx.cs. You can see, how the QueryRepeater is filled in the following file ~\CMSWebParts\Ecommerce\Wishlist.ascx.cs. In this way you can easily select the required documents, do with them what you want, as you have the whole dataset and display them with the repeater.
I hope this is an acceptable approach for you.
Don't hesitate to ask for more information.
Best Regards, Boris Pocatko
|