Copied to clipboard

Flag this post as spam?

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


  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Dec 06, 2012 @ 10:48
    Jesper Ordrup
    0

    Nuget install

    Hi guys,

    Do I need to do anything special to get ucomponents xslt extensions to work when installing. It seems they are not available.

    Running Vs2010, umbraco 4.11.1

    Jesper

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Dec 06, 2012 @ 10:52
    Lee Kelleher
    0

    Hi Jesper,

    The NuGet package doesn't configure anything by default (on install) - for the XSLT extensions, they'll need to be manually set in the "config\xsltExtensions.config".

    (This is the same with the regular Umbraco package too - but we have a post-install dashboard control that offers to do it for you.)

    Cheers, Lee.

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Dec 06, 2012 @ 10:54
    Lee Kelleher
    0

    Slightly off-topic, I have considered making the XSLT extensions to be auto-discoverable, as in using the [XsltExtension()] attribute on the classes, but that would mean that everyone would have all of them by default - which may or may not be desirable.

    What do you think?

    Cheers, Lee.

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Dec 06, 2012 @ 11:09
    Jesper Ordrup
    0

    Hi Lee,

    Yes that's the step I'm missing - is it possible to run the post-install dashboard in some way? nuget installs doesnt appear under packages either, so ..

     [XsltExtension()] - I would say yes. But having a post install dashboard is also fine. Or at least a textfile with the rest config ready to copy would mean a lot (uhh maybe its already there .. will look)

    best

    Jesper

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Dec 06, 2012 @ 11:13
    Lee Kelleher
    0

    My only issue with using the [XsltExtensions()] attribute is that there is no "opt-out" ... meaning that they'd all get loaded into every XSLT macro (which was my bugbear with the EXSLT libraries - I never used them).

    As for the dashboard control, yes - add it in your "config/Dashboard.config" like so:

    <section alias="uComponentsInstaller">
            <areas>
                    <area>developer</area>
            </areas>
            <tab caption="uComponents: Activator">
                    <control>/umbraco/plugins/uComponents/uComponentsInstaller.ascx</control>
            </tab>
    </section>

    More info here: http://ucomponents.codeplex.com/wikipage?title=PostInstall

    Cheers, Lee.

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Dec 06, 2012 @ 11:21
    Jesper Ordrup
    1

    Cool! thanks Lee. Lovely. Works. Super. Great. Merry Christmas.

    Pls. consider adding instructions to the nuget install  - maybe just displaying a text file post install.

    Jesper

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Dec 06, 2012 @ 11:23
    Lee Kelleher
    0

    Thanks Jesper! There is definitely room for lots of improvement with the NuGet package - I have no idea how people are using it (so far).  Thanks for the feedback.

    Cheers, Lee.

Please Sign in or register to post replies

Write your reply to:

Draft