I’ve installed ModX and everything works fine. But when I create a template variable of type image things go weird.
When I edit a document containing that TV, the editor drops me in the directory ’/’
I cannot upload a new image there, there are no other dirs visible, and I cannot create new directories. Where does the editor take me by default? My guess would be somewhere in de assets directory, but that one is writable for my webserver.
Quote from: theo at Jul 23, 2005, 06:35 AM
Quote from: Olaf at Jul 22, 2005, 06:09 PM
I cannot upload a new image there, there are not other dirs visible, and I cannot create new directories.
Same problem here. Using the modx filemanager works fine. And the problem didn’t exist in TP2.1 for me.
Please make sure that the Path for your Resource browser is setup correctly. To edit these settings go to System configuration and select the Interace and Editor tab.
That’s it.
Many thanks theo
-
MODX Staff
- 12,272 Posts
Raymond, does this constitute a quick tweak that need to be committed to SVN?
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
BTW This is still an issue in TP3.1, but at least I found the fix here
Cheers,
Briggsy.
[edit]
It now uploads images to the correct directory (/assets/images) but it inserts the path into the document as src="../../../images/image.jpg" which is wrong, as thats the same as "images/image.jpg" not "assets/images/image.jpg" as it should be.
If I go back to image properties and set URL to assets/images/image.jpg it works fine. However this isn’t ideal as its double handling, and some of the people who will upload content will get confussed by this
Any suggestions?
Make sure that your resource browser’s url is set to the full URL of the site. For example
http://www.mysite.com/assets/
FIXED now, think it was a user error on my part
Quote from: xwisdom at Jul 31, 2005, 08:37 AM
Make sure that your resource browser’s url is set to the full URL of the site. For example http://www.mysite.com/assets/
Yea checked that, its as follows:
Resource path: d:/webserver/apache/apache/htdocs/assets/
Resource URL:
http://www.serria-one.ath.cx/assets/