Developer forum

Forum » Development » PageViewModel.Languages contains deactivated sites

PageViewModel.Languages contains deactivated sites

Anders Ebdrup
Anders Ebdrup
Reply

Hi Dynamicweb,

 

When using PageViewModel.Languages in our templates we also get references to deactivated language layers.

Can this be changed either to include on active language layers or add an extra property where we have check whether the language layer is active?

 

Best regards, Anders


Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply
This post has been marked as an answer

Hi Anders,

I'm unable to reproduce this issue with an inactive language. Can you specify which version of Dynamicweb you're using?

However, if the current page is unpublished on one of the languages, that language is still represented in the PageViewModel.Languages list. You could argue that this is wrong. We're going to discuss it internally and decide what to do. Please not that it won't be until after the Easter vacation in Denmark.

- Jeppe

Votes for this answer: 1

 

You must be logged in to post in the forum