Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Detecting if a translation exists View modes: 
User avatar
Member
Member
ECAbacus - 10/2/2012 3:14:16 PM
   
Detecting if a translation exists
Just wondering if there's any way (macro or something) to tell if an alternative language version exists for a specific document?

Thanks.

User avatar
Kentico Support
Kentico Support
kentico_janh - 10/2/2012 5:26:10 PM
   
RE:Detecting if a translation exists
Hello,

Of course, here is that macro:

{%
if (CurrentDocument.CultureVersions.Count > 1) {
return "alternative tranlation exists";
}
else {
return "no alternative tranlation";
}
%}

Best regards,
Jan Hermann

User avatar
Member
Member
ECAbacus - 10/3/2012 9:32:07 AM
   
RE:Detecting if a translation exists
Great, thanks!