Keyword

Image in content does'nt show with joomla cache activated

  • Matthieu Brunet
  • Matthieu Brunet's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 9 months ago #76586 by Matthieu Brunet
I have some images in my categories descriptions. They show correctly in frontend except when I activate the joomla cache.
In this case, the initial slash is missing, so it's a relative path, and of course, the image can't be found in the category directory.
Html code with cache off
<!-- Category description -->
<p><p><img alt="" src="/images/stories/logo-cook.png" />

HTML code with cache on :
<!-- Category description -->
<p><p><img alt="" src="images/stories/logo-cook.png" />

I tried with and without sh404SEF activated, but it's the same.

Thanks

Please Log in or Create an account to join the conversation.

  • Matthieu Brunet
  • Matthieu Brunet's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 9 months ago #76587 by Matthieu Brunet
Replied by Matthieu Brunet on topic Image in content does'nt show with joomla cache activated
Actually, the problems occurs in com_content also, so it's not a k2 bug.
After searching in joomla forum, I finally found the source of the problem : it's because my "cache" plugin was loaded before the "SEF" plugin. So in plugin management, I just had to change the ordre of the plugins, so that the cache one is loaded after the SEF one.
hth

Please Log in or Create an account to join the conversation.

More
13 years 11 months ago #76588 by Kevin Kahler
Great tip, I had the same issue and this fixed it immediately!!

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #76589 by Swapnil Bhosale
Replied by Swapnil Bhosale on topic Image in content does'nt show with joomla cache activated
Thanks a lot, it just works the great way.No problem with images at all even though we refresh the browser. #k2 simply rocks

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum