Skip to content

Commit 99059e0

Browse files
authored
Incorporated suggestion
1 parent 8bc642d commit 99059e0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

13/umbraco-cms/reference/querying/itagquery.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If you're using it in Views or Partial views you can inject `ITagQuery` using th
1414
@inject ITagQuery _tagQuery;
1515
```
1616

17-
After this you can use `_tagQuery` to access the `ITagQuery`.
17+
After this, you can use `_tagQuery` to access the `ITagQuery`. If your site supports multiple languages, you must specify the desired language when using `ITagQuery`.
1818

1919
If you're using it in controllers, you can inject it into the constructor like so:
2020

@@ -48,11 +48,6 @@ public class TagApiController : UmbracoApiController
4848
`ITagQuery` is a scoped service, meaning that it should only be injected into scoped or transient services. For more information see the official [Microsoft Documentation](https://docs.microsoft.com/en-us/dotnet/core/extensions/dependency-injection#scoped)
4949
{% endhint %}
5050

51-
52-
{% hint style="info" %}
53-
For multi lingual sites, the desired language must be provided when using `ITagQuery`
54-
{% endhint %}
55-
5651
## Examples
5752

5853
All examples are from a view using the injection shown above, but working with tags in controllers will be the same.

0 commit comments

Comments
 (0)