Gold Custom Conlibs

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
dmurphy4
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 30
Joined: Wed Sep 26, 2012 1:47 pm
Location: Wichita, Kansas USA

Gold Custom Conlibs

Post by dmurphy4 » Thu May 09, 2013 10:50 am

I thought I would share my confusion to maybe help others out.

I am designing a new site in Gold and needed to modify the header. In 7.X, you would just edit the standard header scriptlet. In Gold, scriptlets have been done away with (including nVelocity syntax). I'm sure this will allow for easier upgrades and scalability in the future.

So to edit the header in Gold, look for the conlib (these are referred to "controls" in Gold) in the conlib folder with the file name "StoreHeader". I thought I could copy this file and throw a folder called "Custom" like I was used to doing in 7.X but the dashboard wont recognize it. Instead, I copied the StoreHeader conlib file, renamed it to AACustomStoreHeader (the AA keeps all my custom files at the top). Now if you go into the dashboard under layouts, you will see AACustomHeader displayed as a choice for the layout. Save it.
Daniel Murphy
Web Developer - Front End
http://StearnsFlotation.com, http://MadDogGear.com, http://Aerobed.com, http://Sevylor.com
Wichita, Kansas

User avatar
dmurphy4
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 30
Joined: Wed Sep 26, 2012 1:47 pm
Location: Wichita, Kansas USA

Re: Gold Custom Conlibs

Post by dmurphy4 » Thu May 09, 2013 3:42 pm

Not sure what this designer.cs file is for.

Anyone care to explain this designer.cs file?
Daniel Murphy
Web Developer - Front End
http://StearnsFlotation.com, http://MadDogGear.com, http://Aerobed.com, http://Sevylor.com
Wichita, Kansas

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Gold Custom Conlibs

Post by AbleMods » Thu May 09, 2013 8:30 pm

You are correct, the /ConLib/Custom/ folder concept we were so used to in 7.x doesn't work in Gold. At least not from the UI standpoint in the admin.

I have been avoiding the UI to update controls. It doesn't support parameters and will blow away any defined user control parameters you specify manually in the page layouts the next time you change the layout. So I just hard-code the layouts to the correct custom location and file name and move on.

I believe the designer.cs file comes from the forms designer in visual studio when you are editing the site as a Web Application.
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
dmurphy4
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 30
Joined: Wed Sep 26, 2012 1:47 pm
Location: Wichita, Kansas USA

Re: Gold Custom Conlibs

Post by dmurphy4 » Fri May 10, 2013 8:14 am

Thanks for your reply AbleMods. I will keep that in mind.
Daniel Murphy
Web Developer - Front End
http://StearnsFlotation.com, http://MadDogGear.com, http://Aerobed.com, http://Sevylor.com
Wichita, Kansas

Post Reply