Copied to clipboard

Flag this post as spam?

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


  • Frost 70 posts 99 karma points
    Mar 05, 2012 @ 20:05
    Frost
    0

    Create Media Item - Automatically Select Media Location?

    Is it possible to have the parent folder automatically selected rather than having the user click it for every image?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Mar 06, 2012 @ 09:17
    Jeroen Breuer
    0

    I've created a little script which does this if you want to select a media item. I think it should also be possible to do this when creating media. You can download the source and add this yourself: http://damp.codeplex.com/SourceControl/changeset/view/86116#1765796. At the bottom is this code:

            if (!isCreateTree) {
    
                //Wait for 100 miliseconds because the Umbraco tree might not be loaded yet.
                setTimeout(
                    function () {
                        //Find the top node and click it to show the allowed media items of the top node in the centre.
                        leftCol.find("a").first().click();
                    }, 100);
            }

    If you remove the if statement it might work already.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft