How can we get sitecore elements of a specific language using a quick query

We use the code below to get Sitecore items using a quick request:

db.SelectItems("/sitecore/content/test//*[@@templatename='test template name']");

But the problem with this code is that it gets elements from all language versions.

Is there a way to pass a language parameter for a quick query, or how can we get the elements of a specified version of a language using a quick query?

Thanks in advance.

+4
source share
1 answer

Quote from John West:

A quick query does not take into account the contextual language (the results include elements with versions that match the query in any language)

More details can be found here: Sitetore Query Cheat Sheet .

, : , .

Sitecore. SQL Server. . , .

+1

Source: https://habr.com/ru/post/1678245/


All Articles