Copied to clipboard

Flag this post as spam?

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


  • skiltz 501 posts 701 karma points
    Jul 06, 2009 @ 06:36
    skiltz
    0

    XSLT Folders

    Has there been any mention of putting xslt files into folders?  Much like templates?  When you have quite a few trying to find the one you are looking can really hurt your brain.

    Thanks
    Skiltz

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jul 06, 2009 @ 09:13
    Dirk De Grave
    0

    skiltz,

     

    I've had a quick look at the code and from what i read it should be possible to organize your xslt's in folders. It can't be done from within the admin ui (which might be a good feature!), but it can be done from disk, as the class that's responsible for loading the 'xslt tree' iterates over the existing folders/files in the xslt dir.

    Give it a try and see if it works out.

     

    Also verify that choosing an xslt from a macro is still possible. If not, then using the folder approach becomes rather useless.

     

    Btw, the templates section works tiny bit different, as it is not listing files from a folder on disk, but rather using the info stored in the db.

     

    Hope this helps.

     

    Regards,

    Dirk

     

  • Laurence Gillian 600 posts 1219 karma points
    Jul 06, 2009 @ 14:16
    Laurence Gillian
    0

    I can confirm sorting in folder working perfectly, and the macro pick still works.

    I would be nice to have this feature in the AdminUI.

    Umbraco will also display the hidden folders (e.g /.svn/ folders).

    On a sub note, it would be very nice if document types where physical documents. Inheritance could be referenced in the document and the tree could be automatically built (with multiple levels, and one document maybe appearing under several other nodes with out doc duplication). 

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies