Layouts and sidebar content, how is it done?

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Layouts and sidebar content, how is it done?

Post by AbleMods » Tue Feb 18, 2014 7:14 am

Overall I'm getting used to how Layouts and user controls are assigned to flesh out pages in the site. However I'm finding difficulty when it comes to content pages and sidebar content.

If I want to implement content pages as webpages, I can't use layouts and implement the layout sidebar(s). Because the sidebar content must always be a user control. There's no way to specify the sidebar in the layout should be webpage content and not a user control.

So far the only solution I can think of is to build a generic user control that accepts a webpageId as a parameter. Then I can build the sidebar content as another webpage and reference it within the user control and set the parameter value via the Layouts UI.

Are there any plans to improve this?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
ForumsAdmin
AbleCommerce Moderator
AbleCommerce Moderator
Posts: 399
Joined: Wed Mar 13, 2013 7:19 am

Re: Layouts and sidebar content, how is it done?

Post by ForumsAdmin » Thu Feb 27, 2014 5:39 am

Try this
Create a new custom control in ConLib folder. Extend it from CommerceBuilder.UI.WebControls.HtmlContainer. Hopefully it will become available to be added to sidebars in Layout editor. You can set the Value parameter of this control which can be HTML content. The [[ConLib:XXX]] syntax is also accepted in this value field.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Layouts and sidebar content, how is it done?

Post by jmestep » Thu Feb 27, 2014 5:55 am


So far the only solution I can think of is to build a generic user control that accepts a webpageId as a parameter.
I am just getting ready to do that on a site because they want to be able to edit sidebar and other html content via the admin. I will try the other suggestion also and see how far I get with it.
I'm going to post a feature request because we have clients wanting to do this without doing ftp edits.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply