We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12433
    • 16 Posts
    Hello,
    It’s my first few days dealing with MODx and PHP (I am a relatively experienced ASP web developer though) and I am trying to build my first module, one that can be used for creating articles for a news-related website.
    In the form that I have made, there is a number of fields that the user is able to insert some images for the article, images that can be selected from the already uploaded files (server file system)
    Is there something like a popup window that will contain the folder structure, give the ability to navigate through the folders and finally to choose the desired file?
    I guess that this is a common request/need, so there has to be something...I hope!

    Thank you in advance for your assistance.
    • How many articles are you creating and would this be from the front end or the back end?

        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 12433
        • 16 Posts
        Thanx for your reply. The site has to do with the electronic version of a local newspaper, so we are talking about several articles that will be inserted weekly.

        The form is in the module I am developing, so it has to do with the backend. I have looked for a similar popup throughout the MODx manager interface, but I could not find anything.
        The closest thing that I could find is the popup from the WYSIWYG text editor for inserting a file, but that’s not the thing that I am looking for.
          • 20413
          • 2,877 Posts
          Read the whole thread: http://modxcms.com/forums/index.php/topic,31697.0.html

          advantages:
          - content management
          - tv management
          - fast tree access
          - VERY comfortable sorting and visual understanding
          - easy document editing - separated buttons for doc properties and doc content editing

          I dunno the current status...
            @hawproductions | http://mrhaw.com/

            Infograph: MODX Advanced Install in 7 steps:
            http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

            Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
            http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
            • 12433
            • 16 Posts
            Thanx for your reply. I have installed the DocSort module, but this is for handling the documents (pages) of your site, not the files that have been uploaded.

            Actually, what I am looking for is this: If you go at the Modx Manager, under Resources > Manage Files, there is a page that let’s you manipulate folders and files.
            What I would like is this page in a popup, so I can navigate through the server filesystem, choose a file, and copy its path and filename into the desired text field.
            (Something like the Publish date field for webpages, but with choosing a file, instead of the date...)


            UPDATED: I finally managed to create a copy of the aforementioned page, changed its functionality according to my needs, and got the job done!
            • Please share with the rest of the community if you don’t mind!
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 20413
                • 2,877 Posts
                Ohh I was thinking MODx-folders! tongue
                  @hawproductions | http://mrhaw.com/

                  Infograph: MODX Advanced Install in 7 steps:
                  http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

                  Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
                  http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
                  • 12433
                  • 16 Posts
                  @mrhaw: No prob! wink

                  @rthrash: Of course I will, I just want to make some last few changes in order to refine it, and make as autonomous as I can (I had to edit manager/index.php in order to make it work, and I don’t know if this is usually the case and if this is something that MODx developers would be willing to do in their installation...)
                  Eitherway, I will post the code and a short guide of how to use it as soon as it is completely ready wink
                    • 20413
                    • 2,877 Posts
                    Well aside from using image TV and FCKeditor filemanager when editing MODx documents, there
                    are snippets like fileupload and download...
                      @hawproductions | http://mrhaw.com/

                      Infograph: MODX Advanced Install in 7 steps:
                      http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

                      Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
                      http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
                      • 12433
                      • 16 Posts
                      I thought snippets are for the front end. I needed something for the back-end, that’s why I made what can be seen in the following image:
                      http://www.sintihakis.gr/modx.jpg
                      By pressing the green envelope image next to each field, a similar popup opens, and from there you can navigate and choose the desired file, to enter its path in the corresponding input field.