We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29635
    • 361 Posts
    This is an auto-generated support/comment thread for Document Specific Resource Browser Paths.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    Use this if you want to restrict users to uploading TV images and files to something like /assets/images/id/392/, where 392 is the ID of the current document being edited. (Also works with /assets/files.)
      Need MODx Ecommerce? Try FoxyCart!
      • 25551 ☆ A M B ☆
      • 1,231 Posts
      I haven’t tried it but sounds good to me. Could this be extended a bit to create a folder for a particular user and only that user can access the folder? I wanted to create a editable page for users and allow them to have access to uploading to a folder that was only for that document. I want the folder created automatically rather than through ftp. Is this possible?
        Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
        AugmentBLU - MODX Partner

        BLUcart - MODX Revolution E-Commerce & Shopping Cart
        • 23018
        • 353 Posts
        Hi there,

        From the description, this plugin seems to be EXTREMELY useful. Yet it doesn’t work as expected on my machine (modx 0.9.6.3). Right now only this plugin has been installed. No other non-native stuff to mess around with its functionality.

        Problem description:

        I open a new document, enter thze tinymce edit area and push the button for insert image.
        Next i push the icon in the upper left corner to open the file manager.

        Now I can see the images directory with a new folder "id" and within I find another folder with the id of the current document. Ok, BUT shouldn’t the file manager open in the id="1" folder right away? Also I can open up and down in the image directory and upload images to any desired folder. This is exactly not What I want to have.

        This is what I did to integrate the plugin

        Set permissions for frmfolders.html and browser.html to the number of the beast...

        Still wrong

        Copied what’s in between <<<EOT and EOT; and paste it right
        before the </head> in manager/media/browser/mcpuk/browser.html
        . Then turned $autofix to false.

        Still wrong.

        Also I have noticed, that the folders in file manager sometimes appear twice. There is still only one folder, but I can see them two times. Strange...

        Any ideas what to do?

        Regards,

        pepebe
          Homepage: pepebe.de | MODX snippets (and other stuff) at github: https://gist.github.com/pepebe
          • 25663 MODX Staff
          • 12,272 Posts
          It only works for Image/File TVs, not the Tiny MCE / MCPuck browser.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 19800
            • 180 Posts
            the same problem
            very OFTEN images appears twice.
            i’m using only TVs for images and this plugin.

            Can"t get rid of this annoying problem, please help!

            modx 0.9.6.3
              • 29635
              • 361 Posts
              Shoot, I hadn’t been getting notified on this thread. Sorry about that.

              Unfortunately, I haven’t been able to figure out why it sometimes appears twice. You’re right that it’s super annoying, but I tried everything I could think of when I was working on it and I couldn’t get a solution. Working with the file browser is super annoying to begin with, and I wasn’t able to figure out a consistent way to solve the problem.
                Need MODx Ecommerce? Try FoxyCart!
                • 19800
                • 180 Posts
                oh, this is very sad, but thank you for answering
                i’ll try to find solution anyway
                  • 19800
                  • 180 Posts
                  but maybe there is some way to upload file to created directory without mcpuck?
                  what’s about
                  OnFileManagerUpload
                  event?

                  "A File has been uploaded to the server using the "Manage Files" manager page. "

                  so it’s only for file manager? not possible to use with mcpuck?
                    • 29635
                    • 361 Posts
                    Quote from: mk99 at Mar 25, 2009, 03:35 PM

                    so it’s only for file manager? not possible to use with mcpuck?
                    No... it doesn’t work with the "Resources -> Manage Files". It does work with the MCPUK file browser that is used for file and image TVs, though I’m not sure whether or not that’s the same that’s used in TinyMCE or FCKeditor or whatnot (as I force all my clients to use Textile; no RTEs).
                      Need MODx Ecommerce? Try FoxyCart!
                      • 19800
                      • 180 Posts
                      so is it possible to use this event in order to write plugin which automatically uploading file in already created directory by your plugin and inserts it in tv?

                      and if it’s possible, maybe just delete uploaded file or image every time when tv button is clicked? So duplication will not be possible.
                      If manager want to change image, he is deleting old.