LISE Images not showing

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
WDJames
Forum Members
Forum Members
Posts: 64
Joined: Tue Feb 13, 2018 1:09 pm

LISE Images not showing

Post 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
WDJames
Forum Members
Forum Members
Posts: 64
Joined: Tue Feb 13, 2018 1:09 pm

Re: LISE Images not showing

Post 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?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3487
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: LISE Images not showing

Post by velden »

I guess the urls are relative. So consider adding {root_url}/ to the image url in the template
WDJames
Forum Members
Forum Members
Posts: 64
Joined: Tue Feb 13, 2018 1:09 pm

Re: LISE Images not showing

Post 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
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3487
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: LISE Images not showing

Post 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.
WDJames
Forum Members
Forum Members
Posts: 64
Joined: Tue Feb 13, 2018 1:09 pm

Re: LISE Images not showing

Post 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
Post Reply

Return to “Modules/Add-Ons”