I have some logic server side to check if the Item has a language version and based on that the result, the app would choose whether or not to show a particular view. I published the item in es-PA language but it is not rendering on the page.

After debugging, I realized that the RenderingContext.Current.Rendering.Item.HasLanguageVersion() check keeps returning false. For a similar item that I published in es-PA, the check returns true. Am I missing something?

  • Use the desktop page to swap to the web (or prod) database and then navigate to the item. See if the es-PA is present for that item. Sometimes it isn't present when the parent item in that language wasn't pushed to that environment Jul 15 '20 at 3:21
  • @BryanEuton it is there in web so I still don't understand why the check is failing
    – Nick
    Jul 15 '20 at 13:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.