You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 14/umbraco-cms/reference/querying/itagquery.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Working with tags in Umbraco
4
4
5
5
# ITagQuery
6
6
7
-
The `ITagQuery` interface is your primary way to work with tags in Umbraco, the interface allows you to get the various tags like content tags and media tags, as well as getting content by tag, for instance getting all content nodes with the "Umbraco" tag.
7
+
The `ITagQuery` interface is your primary way to work with tags in Umbraco. This interface allows you to get different tags, such as content tags and media tags. It also lets you retrieve content by tag, for instance, getting all content nodes with the "Umbraco" tag.
8
8
9
9
## How to reference ITagQuery
10
10
@@ -46,7 +46,7 @@ public class TagApiController : Controller
46
46
```
47
47
48
48
{% hint style="warning" %}
49
-
`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)
49
+
`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)
50
50
{% endhint %}
51
51
52
52
## Examples
@@ -55,7 +55,7 @@ All examples are from a view using the injection shown above, but working with t
55
55
56
56
### GetAllContentTags(\[string tagGroup])
57
57
58
-
Get a collection of tags used by content items on the site, you can optionally pass in a group name to only list tags belonging to a specific tag group
58
+
Get a collection of tags used by content items on the site. Optionally, you can pass in a group name to only list tags belonging to a specific tag group
59
59
60
60
```csharp
61
61
@{
@@ -66,7 +66,7 @@ Get a collection of tags used by content items on the site, you can optionally p
66
66
67
67
### GetAllMediaTags(\[string tagGroup])
68
68
69
-
Get a collection of tags used by media items on the site, you can optionally pass in a group name to only list tags belonging to a specific tag group
69
+
Get a collection of tags used by media items on the site. Optionally, you can pass in a group name to only list tags belonging to a specific tag group
70
70
71
71
```csharp
72
72
@{
@@ -77,7 +77,7 @@ Get a collection of tags used by media items on the site, you can optionally pas
77
77
78
78
### GetAllMemberTags(\[string tagGroup])
79
79
80
-
Get a collection of tags used by members on the site, you can optionally pass in a group name to only list tags belonging to a specific tag group
80
+
Get a collection of tags used by members on the site. Optionally, you can pass in a group name to only list tags belonging to a specific tag group
81
81
82
82
```csharp
83
83
@{
@@ -88,7 +88,7 @@ Get a collection of tags used by members on the site, you can optionally pass in
88
88
89
89
### GetAllTags(\[string tagGroup])
90
90
91
-
Get a collection of tags used on the site, you can optionally pass in a group name to only list tags belonging to a specific tag group
91
+
Get a collection of tags used on the site. Optionally, you can pass in a group name to only list tags belonging to a specific tag group
92
92
93
93
```csharp
94
94
@{
@@ -149,7 +149,7 @@ Get a collection of tags by entity id (queries content, media and members), and
0 commit comments