Technical support This forum is closed.
Version 1.x > Technical support > Adding User Controls To A Transformation View modes: 
User avatar
Guest
rhavlick - 1/2/2006 8:34:38 PM
   
Adding User Controls To A Transformation
Hello,

Another question I read in the help file that user controls can be added to the transformation. In one of my transformations I'd like to include a ImageGalleryThumbnail control. So I placed this code inside of the transformation:

%%control:ImageGalleryThumbnails%%

How do you specify properties to the control then, for example I need to do:
SelectNodesPath="/Products/ScreenShots" to specify the gallery.

Thanks.



User avatar
Guest
admin - 1/3/2006 2:20:42 PM
   
Re: Adding User Controls To A Transformation
Hello,

Generally, you can specify a single parameter to the user control that is inserted directly into the text. This is usually suitable for simple controls. If you need to integrate a more complex control into your web site, you need to place it directly into your page template (ASPX) file as you normally do.

The ImageGalleryThumbnails control should be placed directly into your page template as it is shown in the sample CorporateSite project. The reason is that it expects the images for the image gallery to be placed in the following structure:

... some document (e.g. a page or product details)
/- gallery (document of type image gallery)
/- image1
/- image2, etc.

Should you need any additional details, please feel free to ask.

Best Regards,

User avatar
Guest
admin - 1/3/2006 2:22:19 PM
   
Re: Adding User Controls To A Transformation
Sorry, here's the structure again:

- some document (e.g. a page or product details)
--- gallery (document of type image gallery)
---- image1
---- image2, etc.