WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

You are not logged in.

#1 13.01.2025 14:39:25

gawi
Member

URLs of images placed in content long of NWI post.

New instalation of WBCE 1.6.3. with NWI 5.0.28.

I have posts with images placed in long content of NWI posts.

When saving the content of a post with an image inserted in the WYSIWYG, the image is saved with the full url instead of {SYSVAR:MEDIA_REL}/...
Therefore, when moving site to another domain/server, it is necessary to correct all urls of images inserted in NWI posts (in WYSIWYG or in database).

Is is possible to solve this problem?

Greetings
Gawi

Offline

#2 13.01.2025 23:22:40

florian
Administrator

Re: URLs of images placed in content long of NWI post.

it should be, so a preg_replace similiar to  this has to be added in save_post.php and view_post.php, but needs then also fixes in NWI anywhere, and this will reflect only new/changed posts.
I've created an issue for this, we will hopefully fix this in an upcoming version.
https://github.com/WBCE/News-with-Images/issues/100


Sorgen sind wie Nudeln: man macht sich meist zu viele.

Offline

#3 14.01.2025 09:48:37

gawi
Member

Re: URLs of images placed in content long of NWI post.

Thank you.

Best regards
Grawi

Offline

Board footer

up