Add a where clause on a language data source.

Brian McKeiver asked on July 6, 2017 17:24

I'd like to cut down the results I receive from my language data source so I can specify only languages where we have finished the translations, however there is no where clause on this data source.

What is the best way of going about this?

Recent Answers


Peter Mogilnitski answered on July 6, 2017 17:43 (last edited on July 6, 2017 17:52)

I would assume you can clone it and make it work as a regular data source i.e. add property "WhereCondition" and then do

 protected void SetupControl()
    {
    ...
    srcCultureBasedURLs.WhereCondition = WhereCondition
1 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on July 6, 2017 18:27

what version of Kentico is it? in 9 and 10 the language data source has options to exclude languages the current page is not translated in.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.