+1-888-365-2779
Try Now
More in this section

Forums / Ecommerce / Product list - thumbnails view - code behind

Product list - thumbnails view - code behind

7 posts, 2 answered
  1. Bob
    Bob avatar
    25 posts
    Registered:
    14 Aug 2012
    18 Dec 2012
    Link to this post
    Hello,

    I read the following blog post to add code behind for a built-in widget.
    http://www.sitefinity.com/blogs/stanislav-velikovs-blog/2012/01/23/how_to_add_additional_logic_into_sitefinity_built_in_widgets

    The problem is that I can't find the thumbnails widget (of the products list widget)... where can I change to code behind file for this widget?

    Kind regards,

    bob
  2. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    19 Dec 2012 in reply to Bob
    Link to this post
    Hey Bob,

    Attached you'll see two screenshots, one for each of Stanislav's approaches.
    As an alternative, you might want to take a look at this Blogpost from Josh Morales (http://www.sitefinity.com/blogs/joshmorales/posts/josh-morales-blog/2011/05/10/mapping_external_templates_for_sitefinity_4_widgets)

    It's a less elegant approach, but if its simply a matter of adding some non obtrusive server-side code its often easier to 'add' than 'inherit' when it comes to upgrades & service packs...

    Jochem
  3. Strahil Strahilov
    Strahil Strahilov avatar
    24 posts
    Registered:
    06 Nov 2014
    20 Dec 2012
    Link to this post
    Hi Bob,

    I agree with Jochem Bökkers, that Josh Morales post will provide you the best solution.

    Kind regards,
    Strahil Strahilov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  4. Bob
    Bob avatar
    25 posts
    Registered:
    14 Aug 2012
    02 Jan 2013
    Link to this post
    Hello all,

    thank you for the responses. I know this post of Josh Morales, but the problem was that I couldn't find the guid of this widget. Finally I found the guid through another way.
    Go to the backoffice -> design -> widget templates and open the template you want to edit. If you open at the same moment firebug (net tab) or fiddler, you'll see the rest service request, and in the url of this request you can find the guid.

    Thanks,

    bob
    Answered
  5. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    02 Jan 2013 in reply to Bob
    Link to this post

    Bob,

    If you install the Sitefinity Thunder extension and use that to retrieve the widget, life will get alot easier. It can automatically download/upload the widgets (just like the built-in editor) but you can also save a widget locally, in which case it saves the template locally under the guid.ascx name.

    http://visualstudiogallery.msdn.microsoft.com/381fde64-9898-4a5d-ae20-861e119bbf92


    Answered
  6. Bob
    Bob avatar
    25 posts
    Registered:
    14 Aug 2012
    02 Jan 2013 in reply to Jochem Bökkers
    Link to this post
    Jochem,

    I know the extension but I missed the 'save as option' to retrieve the guid... :s

    thanks a lot for this tip.

    bob
  7. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    02 Jan 2013 in reply to Bob
    Link to this post

    @Bob,

    It's one of those pleasant little gems that make Georgi's projects rise above the rest :) 

7 posts, 2 answered