Rendering templates for the Image Gallery

We recently upgraded the shared source Image Gallery module for Sitecore 6.1 because the customized properties window that was developed no longer functioned because of Sitecore 6.1 has is using a different properties window more suited for the analytics.


The fix however was very simple and it even allowed us to remove all the code that was used to create the customized properties window by using something new to Sitecore 6.1 called Rendering Parameters Templates. John West have written a post on explaining how it is different from the old properties window. You can read the post here.

I will continue with how it was used for the image gallery module and the first thing we could do was to remove the IGParameters2.xml sheer UI file and the IGParameters2.cs that took the four parameters we needed for the image gallery.

With Sitecore 6.1 we could discard all this and instead create a template derived from the System/Layout/Rendering Parameters/Standard Rendering Parameters Template and enter the four parameters.

Sitecore then stores these values in the control properties dialog in the layout details of the item.


This template do the same as the sheer UI that was created in the previous version of the Image gallery module and when we add it through the page editor the new properties window now looks like this.


I think that it is a pretty cool feature, that for this module allowed me to leave out a lot of sheer UI code and replacing it was as easy as to create a new template in the Template manager.

You can download the latest package from the Image Gallery project room, which can be found here and there is also a video review that can be viewed here.


~ by Jimmie Overby on July 15, 2009.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: