<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to change CMS Image when change language?</title><link>https://answers.axonivy.com/questions/3019/how-to-change-cms-image-when-change-language</link><description>&lt;p&gt;I have an CMS whose type is PNG Image defines 2 picture (one in English and one in German).
I insert this image in .xhtml like: &lt;code&gt;&amp;lt;h:graphicimage name="myImage" library="ivy-cms" styleclass="my-image"/&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;There is a button for changing language of whole application.&lt;/p&gt;
&lt;p&gt;My problem is:
When I click on button to change language, my picture doesn't change. It is changed when I clear cache of browser (Ctrl + F5).
I have already tried adding attribute &lt;code&gt;update="my-image"&lt;/code&gt; for the button, but it still doesn't work.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3019/how-to-change-cms-image-when-change-language" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 13 Dec 2017 07:07:09 -0500</lastBuildDate><item><title>Answer by ToanLC</title><link>https://answers.axonivy.com/questions/3019/how-to-change-cms-image-when-change-language/3026</link><description>&lt;p&gt;For the &lt;code&gt;h:graphicImage&lt;/code&gt; I think there is some caching going on with the browser or &lt;code&gt;nginx&lt;/code&gt;, so they think there could be no changes. Not really sure about this theory.&lt;/p&gt;
&lt;p&gt;In this case, the &lt;code&gt;cms&lt;/code&gt; already returns the &lt;code&gt;img&lt;/code&gt; tag with the URL reference, so you just need to show it with an &lt;code&gt;h:outputText&lt;/code&gt; with &lt;code&gt;escape=false&lt;/code&gt;. &lt;/p&gt;
&lt;p&gt;Just change the &lt;code&gt;locale&lt;/code&gt; of your session then update the &lt;code&gt;h:outputText&lt;/code&gt; then the image should be changed correspondingly. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ToanLC</dc:creator><pubDate>Wed, 13 Dec 2017 07:07:09 -0500</pubDate><guid>https://answers.axonivy.com/questions/3019/how-to-change-cms-image-when-change-language/3026</guid></item><item><title>Answer by SupportIvyTeam</title><link>https://answers.axonivy.com/questions/3019/how-to-change-cms-image-when-change-language/3022</link><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;On which version are you and how does the rendered link look like?&lt;/p&gt;
&lt;p&gt;A resource caching issue was fixed with XIVY-1959.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SupportIvyTeam</dc:creator><pubDate>Tue, 12 Dec 2017 06:23:42 -0500</pubDate><guid>https://answers.axonivy.com/questions/3019/how-to-change-cms-image-when-change-language/3022</guid></item></channel></rss>