Page 1 of 1

LISE Images not showing

Posted: Wed Oct 25, 2023 3:27 pm
by WDJames
Hello,

I'm using LISE as a replacement to CGBlog. My images aren't appearing when viewing the detail view of the posts but works fine when in summary view. Looking at the url of the images when in detail view, it looks like the url includes the previous path like:

https://www.website.com/blog/uploads/images/image.jpg

On the summary page it displays fine with the correct url:

https://www.website.com/uploads/images/image.jpg

Not sure what is happening here as I've tested on other sites (with the same LISE version) and it works fine. The only difference is that this website is using CMSMS 2.2.18.

Any help is greatly appreciated.

Thanks,

James

Re: LISE Images not showing

Posted: Wed Oct 25, 2023 3:47 pm
by WDJames
Just to add, I don't think its specifically a LISE issue. I've added an image to a page and its doing the same thing, adding the previous paths to the image/file url.

Anyone have the same issue?

Re: LISE Images not showing

Posted: Wed Oct 25, 2023 4:19 pm
by velden
I guess the urls are relative. So consider adding {root_url}/ to the image url in the template

Re: LISE Images not showing

Posted: Thu Oct 26, 2023 8:16 am
by WDJames
Hi Velden,

Thanks for your suggestion, it works though the images aren't on the template. They're added via the WYSIWYG which makes adding the "{root_url}/" a bit cumbersome for users. Is there any setting either on the config file or htaccess that can fix it? I've only experienced this on CMSMS 2.2.18 which is odd.

Thanks,

James

Re: LISE Images not showing

Posted: Thu Oct 26, 2023 8:21 am
by velden
Check the {metadata} tag's help (showbase parameter)
Or add the base meta tag yourself.

https://www.w3schools.com/tags/tag_base.asp

From my (outdated) experience it may influence anchor links (#whatever). So check afterwards if you're using those.

Re: LISE Images not showing

Posted: Thu Oct 26, 2023 8:25 am
by WDJames
Hi all,

I've managed to sort it, I didn't realise that I was missing the {metadata} tag from my template. I've added it and everything works as intended.

Thanks,

James