We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40088
    • 708 Posts
    This may be a dumb question but here it goes:

    If I wanted to insert an image via TinyMCE it seems I can only search the server file structure, but is it not possible to search the local computer for files to upload? It seems that any images I may want to use in the site must first be manually uploaded to the server before they can be used within MODX. Is this correct or am I completely off-base?

    Thanks
      Todd
    • The file browser will allow you to upload files; it's the little icon with the green arrow in the upper left toolbar.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 40088
        • 708 Posts
        Thank you.

        Is there a way to set the path of the uploads? For example, if I wanted files to get uploaded to a folder named 'media'. I didn't see anything in System settings.
          Todd
        • As far as I know, there is no way to do this for the Rich Text editor when editing resources. I don't think Media Sources can be assigned to resources.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 36704
            • 131 Posts
            Hi todd.b, Susan,

            i think you can use Media sources on TinyMCE.

            TinyMCE uses default Media source (it's defined in system settings, the key is default_media_source).
            Edit the user you want to use «resources» Media source in TinyMCE, open Settings tab, then Create new. Put default_media_source into Key and ID of your Media source in Value.
            Or, you can just set default_media_source in System settings for everybody.
            Source link:
            http://forums.modx.com/thread/74386/how-to-define-media-source-for-use-in-tinymce#dis-post-423155

            • That's setting a media source for user groups, not for resources.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 40088
                • 708 Posts
                Quote from: sottwell at Oct 14, 2012, 09:19 AM
                As far as I know, there is no way to do this for the Rich Text editor when editing resources. I don't think Media Sources can be assigned to resources.

                Hmmm ... well, ignoring the RTE/TinyMCE aspect for a moment I was hoping it was possible to tell MODX where to upload files (via the Filesystem) other than to the site root which could get cluttered if someone is uploading a lot of files. All I'm after is a way for the client to keep things organized on the server. I suppose the only way to accomplish this is to ftp the files to where they want to store them. A rather clunky solution.

                Though I don't use it much a good example of what I want is Wordpress which does a decent job of maintaining/organizing user-uploaded media. I'm after a similar level of organization.
                  Todd
                • You can create a new Media Source, and set that to be the default, as was pointed out in the link posted by alyainec. It will apply to all resources. The default "Filesystem" source will still be available as an option in the File Manager tab.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org