Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sebastian Dammark 583 posts 1407 karma points
    Jun 16, 2013 @ 23:31
    Sebastian Dammark
    0

    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

    <ext assembly="assemblyName" type="assemblyName.namespace.type" alias="custom" />

    Thanks

  • Sebastian Dammark 583 posts 1407 karma points
    Jun 16, 2013 @ 23:50
    Sebastian Dammark
    101

    Ohhh ... Got it now

    Just needed to call

    xmlns:TC="urn:TC"

    instead of

    xmlns:TC="urn:teacommerce"
  • Rune Grønkjær 1372 posts 3103 karma points
    Jun 17, 2013 @ 08:24
    Rune Grønkjær
    0

    Nice one.

    Just to clarify. Yes you can ;)

    Hope you are ready for work after a well done Code Garden. Good times.

    /Rune

  • Wouter 49 posts 76 karma points
    Jun 26, 2013 @ 09:28
    Wouter
    0

    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?

  • Anders Burla 2560 posts 8256 karma points
    Jun 26, 2013 @ 12:13
    Anders Burla
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft