When I use this code I also see the customer logos in the jQuery carousel, when I look at the Danish version of the site, but when I access the English version of the website I get Error parsing XSLT file: \xslt\customerCarousel.xslt
I have tried in the template matching on Customer to only write:
which return a list of node ids which is different from each site language, because of different selected nodes in the structure.
and with this line I get a list of the media ids, which in this case returns same media ids, because the content nodes have selected the same media items as image:
You're doing the right things, it seems - but there's one critical place where you seem to assume too much: You're not testing the customerLogo property before sending it into the GetMedia() method - my guess is that one of the Customer nodes in the English section has an empty customerLogo...
You are right :) One of the customer nodes in English section was missing the logo.. sorry about that :)
Thanks for pointing on this .. and for sharing the example above.. especially the last example might be useful as a fallback template. it works just fine now :)
Get data from nodes picked with MNTP
I have a multilingual site structure like this:
I am then using multipicker helper to get the selected nodes.
In my xslt I have the following code:
When I use this code I also see the customer logos in the jQuery carousel, when I look at the Danish version of the site, but when I access the English version of the website I get Error parsing XSLT file: \xslt\customerCarousel.xslt
I have tried in the template matching on Customer to only write:
which return a list of node ids which is different from each site language, because of different selected nodes in the structure.
and with this line I get a list of the media ids, which in this case returns same media ids, because the content nodes have selected the same media items as image:
But when I then try to get the media paths, it returns the image path in the Danish site version, but it fails on the English site version:
What am I doing wrong?
/Bjarne
Hi Bjarne,
You're doing the right things, it seems - but there's one critical place where you seem to assume too much: You're not testing the customerLogo property before sending it into the GetMedia() method - my guess is that one of the Customer nodes in the English section has an empty customerLogo...
You can just move the if statement up like this:
- or (my preferred version) - create a template to match those and "flag" them so you'll notice ("lime" is always good here :-)
/Chriztian
Hi Chriztian
You are right :)
One of the customer nodes in English section was missing the logo.. sorry about that :)
Thanks for pointing on this .. and for sharing the example above.. especially the last example might be useful as a fallback template.
it works just fine now :)
/Bjarne
is working on a reply...