ConLib/Custom folder override question

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

ConLib/Custom folder override question

Post by AbleMods » Wed May 13, 2009 10:38 am

Long ago, many Jedi believed that *any* ConLib user control stored in the ~/ConLib/Custom folder would automatically override an equivalent control in the regular ~/ConLib/ folder.

However I notice that certain user controls have direct references to other controls and they are hard-coded to the path. For example, 7.0.2 CategoyrGridPage.ascx:

Code: Select all

<%@ Register Src="~/ConLib/AddToCartLink.ascx" TagName="AddToCartLink" TagPrefix="uc" %>
So in these cases where user controls have other user controls are hard-coded, will the hard-coded user control get overridden by an equivalent one in the ~/ConLib/Custom folder?

The force tells me the answer is "no" but I'd like confirmation. Sometimes the will of the force is a little unclear.
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
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: ConLib/Custom folder override question

Post by jmestep » Wed May 13, 2009 6:16 pm

I have never had them override- I've had to change the code paths.
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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: ConLib/Custom folder override question

Post by mazhar » Thu May 14, 2009 6:52 am

No it wont override. If you move some control to custom folder and want all other dependent controls to make use of new version then you will have to change references.

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

Re: ConLib/Custom folder override question

Post by AbleMods » Thu May 14, 2009 7:22 am

That's what I thought - thanks for the confirmation....

Joe
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

Post Reply