- Posts: 28
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Image in content does'nt show with joomla cache activated
Image in content does'nt show with joomla cache activated
- Matthieu Brunet
-
Topic Author
- Offline
- Junior Member
Less
More
15 years 4 months ago #76586
by Matthieu Brunet
Image in content does'nt show with joomla cache activated was created 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
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
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 28
15 years 4 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
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.
- Kevin Kahler
-
- Offline
- New Member
Less
More
- Posts: 1
14 years 6 months ago #76588
by Kevin Kahler
Replied by Kevin Kahler on topic Image in content does'nt show with joomla cache activated
Great tip, I had the same issue and this fixed it immediately!!
Please Log in or Create an account to join the conversation.
- Swapnil Bhosale
-
- Offline
- New Member
Less
More
- Posts: 7
14 years 1 month 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.
- Forum
- K2 Community Forum
- English K2 Community
- Image in content does'nt show with joomla cache activated