I realise that this isn't necessary a bug but more a question. I use pgrfilemanager with ckeditor in my own cms. This means that I place the cms in a protected folder called http://mysite.com/cms. Xml-files created by the ckeditor are located in a folder called http://mysite.com/xml. Images are in turn located in a folder called http://mysite.com/imgs.
I set the PGRFileManagerConfig::$rootPath = '../../../imgs'; (It seems like I can't make it work with an absolute path)
When I insert the image the path to the image becomes this:
../../../imgs/myimage.jpg
The problem is that this isn't the correct path in relation to the xml-file when used in the website & in the cms - the user have to edit the path.
Is there a way you can set this up in pgrfilemanager like you can in ckeditor?
In ckeditor API you can use this: config.baseHref to solve these problems.
Niklas
Hi,
Absolute path should solve your problem
dirname(__FILE__) in your images directory should return correct absolute path