Copied to clipboard

Flag this post as spam?

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


  • frank-frank 22 posts 45 karma points
    Jul 15, 2010 @ 04:15
    frank-frank
    0

    can I drop new xslt files directly into the xslt file folder?

    Hello,

    I am wondering if I can drop new xslt files directly into the xslt file folder of the umbraco installation? Any side effects?

    I didn't see a database folder where umbraco keeps records about the xslt files... so since I can see (in the back-office, developer section) the new xslt files I had dropped into the xslt folder I am thinking it is ok to do taht? Or must I create files in the back office?

    Thanks

    Frank

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Jul 15, 2010 @ 09:32
    Matt Brailsford
    0

    Hey Frank,

    Yes, you can just drop XSLT files in the XSLT folder and they will automatically get picked up. The same goes for the css, scripts and usercontrols folders.

    Many thanks

    Matt

  • Folkert 82 posts 212 karma points
    Jul 15, 2010 @ 10:00
    Folkert
    0

    You also can create folders in the xsl directory. The're picked up also. Nice to know for having many xslt files.
    You can't create them with Umbraco, use file system to create them.

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Jul 15, 2010 @ 10:11
    Thomas Höhler
    1

    You cannot create folders in the xslt folder, but you can can create xslt in existing folders by typing "FolderName/XSLTName" in the create dialog. ;-)

    Thomas

  • Folkert 82 posts 212 karma points
    Jul 15, 2010 @ 10:15
    Folkert
    0

    Thats' a very nice tip!!! Thanx! I din't know.

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Jul 15, 2010 @ 10:19
    Matt Brailsford
    0

    I generally perfer to prefix my xslt files either Macro.MyFileName.xslt or Include.MyFileName.xslt. Keeps them grouped in Umbraco, and no undocumented hacks needed =)

    Matt

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Jul 15, 2010 @ 12:27
    Thomas Höhler
    0

    I am grouping my xslts in folders but I am also prefixing them because of loading the tree with over 100 xslts isn't very effective ;-)

  • frank-frank 22 posts 45 karma points
    Jul 15, 2010 @ 21:30
    frank-frank
    0

    Thomas, Matt, Folkert,

    thanks guys! I appreciate your info and tips very much!

    Regards

    Frank

Please Sign in or register to post replies

Write your reply to:

Draft