We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12147
    • 182 Posts
    It’s not clear to me how to create links to uploaded documents in content text. Using TinyMCE, I highlight text, click on the link icon, and the Insert/Edit Link window opens. It would seem that "Link URL" would be the logical choice, but when I click on the little icon to the right, FCKeditor opens, and there is nothing to choose from in that window).

    My docs are not in the Assets folder - they’re in a folder outside Assets called "docs". I changed the Resource path to reflect this, but when FCKeditor opens, there is nothing but " " (as far as I can tell that’s what it is - but no folders or anything else)

    Could someone save me from trying to remember document path (not a good scenario considering my memory!) and explain, or point me to directions, the simple way to create content links to other documents? (I have searched, but can’t figure)

    Thanks!
    Wendy
      • 3707
      • 241 Posts
      When FCKeditor opens, does it say ’Files’ in the top left corner in the ’Resource Type’ menu? TinyMCE will link to files in the ’Files’ folder when you link to a resource, just as it will link to the images folder when you click the insert image button. You’ll need to move your documents to the files folder instead of docs.
        • 12147
        • 182 Posts
        Yes, it does say "Files" at top left.

        OK, so moving stuff to "Files" folder - this would be the Files folder within the Assets folder, right?

        Will the paths currently used for documents (in the "docs" folder, made while site was static) be automatically rewritten when I place them all in the Files folder?

        Am I going to run into further trouble if all the other things like imgs, etc., aren’t in the Assets folder?? I remember reading it didn’t matter where they were, but maybe that was only kidding undecided

        Thanks for your help!
        Wendy
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          You can put files wherever you want, but you’ll not be able to access them from the Resource Browser (unless you hack its configuration files to change its paths, but then they won’t work in the Manager).

          No, any files you had in the assets/docs folder won’t get their paths changed automatically if you move them.
            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
            • 12147
            • 182 Posts
            Thanks - so I guess from now on I’ll upload into the Files folder, and leave everything else where it is.
            You can put files wherever you want, but you’ll not be able to access them from the Resource Browser (unless you hack its configuration files to change its paths, but then they won’t work in the Manager).
            (Maybe this should be added to the general documentation?)

            Is there documentation anywhere of what, exactly, the configuration of the Resource Path and Resource URL needs to be?

            Right now it’s: http://www.domain.org/docs/ (as mentioned, the "docs" folder is not inside the "assets" folder)

            Thanks,
            Wendy

              • 12147
              • 182 Posts
              Resource paths inconsistent in installation - fixed, TinyMCE updated, problem resolved.

              Thanks for help with this!