Page 1 of 1

Gold Custom Conlibs

Posted: Thu May 09, 2013 10:50 am
by dmurphy4
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.

Re: Gold Custom Conlibs

Posted: Thu May 09, 2013 3:42 pm
by dmurphy4
Not sure what this designer.cs file is for.

Anyone care to explain this designer.cs file?

Re: Gold Custom Conlibs

Posted: Thu May 09, 2013 8:30 pm
by AbleMods
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.

Re: Gold Custom Conlibs

Posted: Fri May 10, 2013 8:14 am
by dmurphy4
Thanks for your reply AbleMods. I will keep that in mind.