diego wrote: ↑Mon Mar 11, 2019 1:44 pm
Bludit is going to parser the content of the page and show to the user the next code.
ohhh that clarifies this constant.
It is just that its behaviour is a bit weird to me along with variable
Code: Select all
$imagesURL = (IMAGE_RELATIVE_TO_ABSOLUTE? '' : DOMAIN_UPLOADS_PAGES.$uuid.'/');
set in kernel\admin\themes\booty\html\media.php
If I set the constant to true, and img button inserts only img filename in editor's textarea, outputed html page code contains absolute path to img.
So far so good.
But I've got some kind of a media directory for "global" images used on couple pages, not to duplicate the img files in every article.
The problem appears, when I try to insert a path to img located in this directory when IMAGE_RELATIVE_TO_ABSOLUTE is set to TRUE.
It is also parsed and gets the absolute path to posts directory, thus making the img URI wrong.
There's no problem with deleting the domain in inserted absolute path with default constant state, but I need to remember doing it all the time.
So shouldn't inserted in textarea path to img be relative in IMAGE_RELATIVE_TO_ABSOLUTE default behaviour?
ps. I can't set IMAGE_RESTRICT constant as the img manager doesn't support directory nesting.