Assigning XPath as ConLib property

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
nickc
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Thu Nov 29, 2007 3:48 pm

Assigning XPath as ConLib property

Post by nickc » Wed Dec 23, 2009 9:37 am

Any suggestions for how to pass an XPath to a control using ConLib syntax? Use of "[]" characters is breaking nVelocity renderer.

Code: Select all

[[ConLib:UtilityControls/Profile LoadXPath="/sites/site[@id=\"name\"]" ]]

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

Re: Assigning XPath as ConLib property

Post by mazhar » Wed Dec 23, 2009 10:56 am

Hmm nick why don't you try something other then brackets to represent the bracket and then update your LoadXPath property to first replace brackets with new character you selected for masking. For example let's say in our dictionary we call + sign a bracket. Then when passing in the XPath replace all brackets with + signs. Now update the get part of your LoadXPath path to replace + with [ when returning XPath for usage. May be it helps

Post Reply