Add ConLib item to list of available controls on layout page

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
gdelorey@mitcs.com
Commander (CMDR)
Commander (CMDR)
Posts: 129
Joined: Thu Oct 19, 2006 5:33 pm

Add ConLib item to list of available controls on layout page

Post by gdelorey@mitcs.com » Fri May 17, 2013 11:22 am

I'm trying to create a content conlib item called 'homeRightSidebar' to put some HTML content into. Following the instructions here: http://help.ablecommerce.com/mergedProj ... htm#sample

When I create my control and add it to the site, it does not show up in the list of available controls to choose. Is there a step I'm missing?

Thanks,
Greg

User avatar
Naveed
Rear Admiral (RADM)
Rear Admiral (RADM)
Posts: 611
Joined: Thu Apr 03, 2008 4:48 am

Re: Add ConLib item to list of available controls on layout page

Post by Naveed » Fri May 17, 2013 11:44 am

Layout manager will only list controls for sidebars which implement the CommerceBuilder.UI.ISidebarControl interface. The "CommerceBuilder.UI.ISidebarControl" is an empty interface, you just need to add it to class definition, something like:

Code: Select all

public partial class homeRightSidebar: System.Web.UI.UserControl, ISidebarControl

gdelorey@mitcs.com
Commander (CMDR)
Commander (CMDR)
Posts: 129
Joined: Thu Oct 19, 2006 5:33 pm

Re: Add ConLib item to list of available controls on layout page

Post by gdelorey@mitcs.com » Fri May 17, 2013 11:58 am

Worked perfect, thanks!

Post Reply