Hi, adding a refrence to xmlns:TC="urn:TC" does not seem to work for me (I have all the tc dll's in my bin folder): Cannot find a script or an extension object associated with namespace 'urn:TC'.
It looks like the library for xslt is present in the dll TeaCommerce.Umbraco.Web.dll, namespace TeaCommerce.Umbraco.Web.XsltExtensions. When I try to add this to the xsltExtensions.config (<ext assembly="TeaCommerce.Umbraco.Web" type="TeaCommerce.Umbraco.Web.XsltExtensions" alias="TC" />) it won't work either because XsltExtensions is an abstract class (you should remove the static), Umbraco does not like this and gives us the error: Cannot create an abstract class.
Your right - in Umbraco 6.1 this won't load our XSLT extensions because it is a static class. I have fixed it in the upcoming Tea Commerce 2.1.3 that should be released within this week.
XSLT in Tea Commerce 2
Hi Guys
Is it possible to use XSLT in Tea Commerce 2 instead of Razor ?
If yes, then how should this line look like in the xsltExtensions.config
Thanks
Ohhh ... Got it now
Just needed to call
instead of
Nice one.
Just to clarify. Yes you can ;)
Hope you are ready for work after a well done Code Garden. Good times.
/Rune
Hi, adding a refrence to xmlns:TC="urn:TC" does not seem to work for me (I have all the tc dll's in my bin folder):
Cannot find a script or an extension object associated with namespace 'urn:TC'.
It looks like the library for xslt is present in the dll TeaCommerce.Umbraco.Web.dll, namespace TeaCommerce.Umbraco.Web.XsltExtensions. When I try to add this to the xsltExtensions.config (<ext assembly="TeaCommerce.Umbraco.Web" type="TeaCommerce.Umbraco.Web.XsltExtensions" alias="TC" />) it won't work either because XsltExtensions is an abstract class (you should remove the static), Umbraco does not like this and gives us the error:
Cannot create an abstract class.
What should I do to make it work?
Hi Wouter
Your right - in Umbraco 6.1 this won't load our XSLT extensions because it is a static class. I have fixed it in the upcoming Tea Commerce 2.1.3 that should be released within this week.
Kind regards
Anders
is working on a reply...