Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author thomstark

    (@thomstark)

    The New in manager mode is for creating a new directory. For file uploads, you want to use the [fileup] shortcode and its attendant attributes. If you use the shortcode generator, each option has a little tutorial window.

    Thread Starter stevied

    (@stevied)

    OK, thanks. Was using the [fileup] shortcode already. Just wondering if the “new” could also be used to add files.

    I would recommend allowing admins to upload new files via manager mode, too. No biggie, though. Everything works perfectly.

    Plugin Author thomstark

    (@thomstark)

    If you put your [fileup] shortcode directly above your [fileaway] manager and/or directories shortcode, then put drawerid=1 in the fileaway shortcode, and matchdrawer=1 in your fileup shortcode, they behave as a single entity, and the files will upload to whatever the current directory is on the table. Of course, your base and sub settings need to be the same in both shortcodes for this to work.

    Thread Starter stevied

    (@stevied)

    Oh, nice. Didn’t know about the matchdrawer id option. I didn’t have that set and it still worked, though I had to refresh the page to see the file appear.

    I just added in the matchdrawer option and I don’t see that it does anything differently. Should I see different behavior with it turned on?

    Plugin Author thomstark

    (@thomstark)

    If you have [fileup fixedlocation="true"] then it will upload to the established directory in your base+sub settings. If you add matchdrawer=whatever, then the file upload directory will change based on the currently-navigated directory tree table directory. So if you click on a subdirectory on the file table, that will be the new upload directory, if matchdrawer and drawerid match. Without the matchdrawer option, then File Up will only upload to the established directory (with fixedlocation activated).

    Make sense?

    Plugin Author thomstark

    (@thomstark)

    For instance:

    Arrangement #1:

    [fileup base=1 sub="My Sub Dir"]
    [fileaway base=1 sub="My Sub Dir" manager=true directories=true]

    This will give the user a dropdown on the File Up form, beginning with “My Sub Dir”, and allowing them to use the dropdown repeatedly to navigate further into the structure to find the desired upload directory.

    Arrangement #2:

    [fileup base=1 sub="My Sub Dir" fixedlocation="true"]
    [fileaway base=1 sub="My Sub Dir" manager=true directories=true]

    This will remove the Upload Directory dropdown from the File Up form, and will always only upload files to “My Sub Dir”, regardless of where the user is located on the File Away table.

    Arrangement #3:

    [fileup base=1 sub="My Sub Dir" fixedlocation="true" matchdrawer=1]
    [fileaway base=1 sub="My Sub Dir" manager=true directories=true drawerid=1]

    This will remove the Upload Directory dropdown from the File Up form, and sync the upload directory to the currently viewed directory on the File Away directory tree table. So if they navigate to “My Sub Dir/My Sub Sub Dir” on the File Away table, then that will be the new fixed file upload directory.

    Thread Starter stevied

    (@stevied)

    Yup got it.

    I don’t need that though because I just have two fixed directories that I’m uploading to.

    One tiny suggetion while I have you:

    1) See http://ilwu63.prometheuslabor.com/dispatch-cards/
    2) I originally had one [fileup] for uploading both day and night files
    3) It was not obvious how to select subdirectories, however. I could see a lot of people getting confused. So I went with two different [fileup] controls (one for day and one for night).

    My suggestion would be to make it clearer to users that they can select a subdirectory.

    The setup I have now works perfectly for me and I wouldn’t change it. But for others who need users to browse subdirectories, I think something is needed to make the a little more obvious.

    Thanks for your work!

    Plugin Author thomstark

    (@thomstark)

    Sure. I understand. You can of course just add some HTML to the page, above the File Up form, explaining its usage in whatever terms you see fit. I could add some sort of explanation to it, but I hesitate to provide a one-size-fits-all description, especially with all the international translations involved. I could add an attribute that allows you to add a custom message to explain the dropdown, but then, you could just do that yourself and style and place it however you like. If you catch my drift.

    Thread Starter stevied

    (@stevied)

    Sure yeah. I was thinking like some kind of visual indication, though, to let people know the directory was clickable. Right now you see the directory name and it’s clickable but it’s not immediately obvious to casual computer users what it is. Again, no biggie. I do a small amount of programming myself and I know how huge of a task it is to focus on the million and one details that go into building software. That’s why your plugin is so great, you nail so many of those details.

    I do have one other quesiton. Since my admin users will have no need to create new directories, I’d like to remove the “new” button and the row in the table. Can it be done without hiding it with css?

    Ah, and one more suggestion I just thought of!

    If you could put a shortcode cheat sheet somewhere so I don’t have to be so reliant on the generator. That would be a great time saver.

    Thanks!

    Plugin Author thomstark

    (@thomstark)

    Before I answer, are your users admins, or general, lower-tier users? In short, are you giving them access to manager mode? If not, they’ll still see the table, just without the manager mode options.

    Plugin Author thomstark

    (@thomstark)

    I’m sorry. You totally already answered my question, and I missed it.

    Currently there is no way to disable the Create Directory row, but I will include it in the next release (whenever that is, I don’t know). Meantime, you’ll have to use CSS, like so:

    table tbody tr[id^="folder-ssfa-create-dir-"]
    {
        display:none;
    }

    And you have all the info for the shortcode attributes in the Tutorials tab of the File Away settings page.

    Thread Starter stevied

    (@stevied)

    There are 3 kinds of users for this site:

    1) admins (some training on CMSs)
    2) file uploaders (untrained on CMSs)
    3) file downloaders (end users)

    I want to make this is simple as possible for category 2 users. The scenario I’m considering is this:

    A user uploads file to wrong directory and needs to move it. So they need to have the manager mode to do that. What I’m worreid about, however, is they will overlook the [fileup] buttons and start pounding on the “new” button to try to upload the file and get confused and start creating directories and generally just make a mess of things.

    I looked and I don’t see a way to remove the tr the new button is in with css. id seems to change from page load to page load.

    Plugin Author thomstark

    (@thomstark)

    (Edited CSS above, fixed typo).

    Thread Starter stevied

    (@stevied)

    Ah, great. I’m not a css guru. Thanks for that! You are the mother fucking man!

    Thread Starter stevied

    (@stevied)

    Ok, I had to throw an !important in there. So final code is:

    table tbody tr[id^="folder-ssfa-create-dir-"]
    {
        display:none !important;
    }
Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Adding files in manager mode’ is closed to new replies.