relative paths to images outside files folder
Permalink
When I add an image through Add Content block and image button, I can see it in editor. But when saved and checking browser, image doesn't show up.
What would be right URL to type to show something outside files folder ?
What would be right URL to type to show something outside files folder ?
I work 5.2 version.
If I insert picture from images/ folder which is at the same level as default files/ this is what happens:
Image inserted as image block, which can only reside in files folder have valid URLhttp://mysite/files/LARGENUMfilename.jpg...
that's OK of course.
However, image that is inserted as image while editing content block which is in that images/folder gets this URLhttp://mysite/current_page_where_IMG_is/images/......
If I insert picture from images/ folder which is at the same level as default files/ this is what happens:
Image inserted as image block, which can only reside in files folder have valid URLhttp://mysite/files/LARGENUMfilename.jpg...
that's OK of course.
However, image that is inserted as image while editing content block which is in that images/folder gets this URLhttp://mysite/current_page_where_IMG_is/images/......
I've found where is error.
If I write image path without starting dash, it will reproduce that error.
But image would still be visible while editing.
So ... typing /path/ with dash first should be OK.
If I write image path without starting dash, it will reproduce that error.
But image would still be visible while editing.
So ... typing /path/ with dash first should be OK.
Anyways, it builds these paths based on values set in the base.php or interpreted through common assumptions in regards to where files are stored.
I know there was an issue with 5.1 that had a problem with images being inserted, but this has since been fixed as of 5.2 if not sooner in 5.1.1