• 0
Sign in to follow this  
Followers 0

DMS 2 DMS + WPML - broken images


Question

Posted · Report post

site: http://demo.interpromote.com/test/

 

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

5 answers to this question

  • 0

Posted · Report post

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
  • 0

Posted · Report post

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
  • 0

Posted · Report post

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
  • 0

Posted · Report post

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

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
Sign in to follow this  
Followers 0