DMS 2 DMS + WPML - broken images

6 posts in this topic



problem: DMS is showing the same images regardless of which language is selected in the WPML language changer.


I need to display different images in different languages because the images have captions.


I've tried the solution described in DMS forum here, but this doesnt work for me because the mediabox only has one path and doesnt seem to feature the [pl_site_url] token.


I tried replacing the root domain with this token in the first  mediabox but as you can see, it broke the image path.


Any ideas on how to fix this, please?



Share this post

Link to post
Share on other sites

So in the mediabox image field, you're manually adding the path to the url instead of using the pl shortcode that comes up when you add throug hthe media library etc? And it's still not working? You're using the same image just the caption that's changing right?

Share this post

Link to post
Share on other sites

the problem is that i need a different image for different languages.


If I just put a path to *one* image, it works - but of course it will show the same image for every language which is no good since the images have embedded text.


I need to call a different image per language, based on the language selected with WPML... any ideas on how to do this within a DMS mediabox?

Share this post

Link to post
Share on other sites
Ok that sounds like it could work. Would polylang support multiple versions of the homepage?

Share this post

Link to post
Share on other sites

Hello interpro


Polylang allows you to display content based on the language and uses a separate post for each language, so you can have a totally different content between posts in each language.Then you would have a section pull the content for the post for that language on the home page rather than needing a home page for each language, 


In other other words - one home page pulling the required content from posts for that language. 


Does that make sense? 

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • Saving templates
      By Jackey+
      All of a sudden my install fails to save a page as a template. It throws this error:
      Uncaught TypeError: Cannot read property 'post' of null
      Any idea what is wrong here?
    • WPML plugin
      By Jackey+
      @Andrew @Simon 
      After some extensive web building with WPML I experienced that I needed to do numerous workarounds to prevent my page data to get lost, and really could not dot the i's. I would therefore like to request PageLines to build a WPML plugin for PL5 that will enable all text fields in the PL5 editor to be handled with the string translator in WPML.
      I think that would give PL5 an edge on the international playing field.
    • DMS2 an "App Aware" theme?
      By vanessabt+
      Hi,  I am looking at bringing on a new client that we are doing a website redesign for.  Ideally I would like to use pagelines for this but we are also going to be potentially using phonegap to build a corresponding mobile app for the client and connecting it through the AppPresser core plugin to wordpress.  One of the conditions in order to do this is that the chosen theme that is installed in wordpress and that the website uses is an "app aware" theme.  Do you know if dms is an "app aware" theme?  I need to confirm this upfront because there will be no time to redevelop the site if it does not work.  We have a tight timeframe to complete the site and then phase 2 will be the app.  Please advise.  Thank you.
    • Visibility on mobile - tags or code?
      By mikeeg8+
      Is there a quick way to show/hide things on mobile and desktops please, i.e. like a shortcode or similar?
      I've used a bit of code, but wondered if that was the mode elegant way - is there something built into a media box, for example that would give me a hide on desktop toggle?
      Thank you
    • DMS keeps on bugging out on my new site, plugins ahve been installed and css is correct, know idea why
      By Universal Web Design+
      Any help with identifying the error in dms please. can't seem to find anything