ImageControl Ascx Layout Template.
Browsing the forum I happened upon a post about the decompile tool. Brilliant! I just decompiled the Resources file, dug out the relevant ascx and i'm off to a good start. I still need to figure out how to access the description field though. But there is a day tomorrow also.
--- original question --------------------------------------------------------------------------------------------------------------
Hi. I am evaluating Sitefinity and so far so good. My Editors are clearly in love with the drag drop concept for making attractive ad-hoc page designs. Now to my challenge at hand. While one can arguably do almost everything with a Content block, I would like to extend/adjust the ImageControl's LayoutTemplate. (in this case add a styled Photo Caption from the Images Description field, under the photo)
My problem being that while I can easily see what fields I have to work with in, lets say a News-template
(Edit->Single Item Settings->Detail templates-Edit->The code). I can't seem to find a way to get the the same "starting point" as the Template for the ImageControl is an compiled resource.
I would love to get some pointers.
/Magnus
Hello Sungamrammah,
Please find below the default template we are using for ImageControl:
<%@ Control Language="C#" %><%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sf" %><%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.PublicControls.BrowseAndEdit" Assembly="Telerik.Sitefinity" %><sf:SfImage id="imageItem" runat="server" /><a href="javascript:void(0)" runat="server" id="originalImageLink"></a><sf:BrowseAndEditToolbar ID="browseAndEditToolbar" runat="server" Mode="Edit"></sf:BrowseAndEditToolbar><asp:Literal ID="Literal1" runat="server" DisplayMode="Read" Value='<%# Eval("Description")%>' />