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: 10/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
@@ -7,7 +7,7 @@ description: "Working with tags in Umbraco"
7
7
8
8
# ITagQuery
9
9
10
-
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.
10
+
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.
`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)
52
+
`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)
53
53
{% endhint %}
54
54
55
55
## Examples
@@ -58,7 +58,7 @@ All examples are from a view using the injection shown above, but working with t
58
58
59
59
### GetAllContentTags([string tagGroup])
60
60
61
-
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
61
+
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
62
62
63
63
```csharp
64
64
@{
@@ -69,7 +69,7 @@ Get a collection of tags used by content items on the site, you can optionally p
69
69
70
70
### GetAllMediaTags([string tagGroup])
71
71
72
-
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
72
+
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
73
73
74
74
```csharp
75
75
@{
@@ -80,7 +80,7 @@ Get a collection of tags used by media items on the site, you can optionally pas
80
80
81
81
### GetAllMemberTags([string tagGroup])
82
82
83
-
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
83
+
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
84
84
85
85
```csharp
86
86
@{
@@ -91,7 +91,7 @@ Get a collection of tags used by members on the site, you can optionally pass in
91
91
92
92
### GetAllTags([string tagGroup])
93
93
94
-
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
94
+
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
95
95
96
96
```csharp
97
97
@{
@@ -152,7 +152,7 @@ Get a collection of tags by entity id (queries content, media and members), and
Copy file name to clipboardExpand all lines: 13/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
@@ -45,7 +45,7 @@ public class TagApiController : UmbracoApiController
45
45
```
46
46
47
47
{% hint style="warning" %}
48
-
`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)
48
+
`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
49
{% endhint %}
50
50
51
51
## Examples
@@ -54,7 +54,7 @@ All examples are from a view using the injection shown above, but working with t
54
54
55
55
### GetAllContentTags(\[string tagGroup])
56
56
57
-
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
57
+
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
58
58
59
59
```csharp
60
60
@{
@@ -65,7 +65,7 @@ Get a collection of tags used by content items on the site, you can optionally p
65
65
66
66
### GetAllMediaTags(\[string tagGroup])
67
67
68
-
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
68
+
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
69
69
70
70
```csharp
71
71
@{
@@ -76,7 +76,7 @@ Get a collection of tags used by media items on the site, you can optionally pas
76
76
77
77
### GetAllMemberTags(\[string tagGroup])
78
78
79
-
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
79
+
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
80
80
81
81
```csharp
82
82
@{
@@ -87,7 +87,7 @@ Get a collection of tags used by members on the site, you can optionally pass in
87
87
88
88
### GetAllTags(\[string tagGroup])
89
89
90
-
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
90
+
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
91
91
92
92
```csharp
93
93
@{
@@ -148,7 +148,7 @@ Get a collection of tags by entity id (queries content, media and members), and
Copy file name to clipboardExpand all lines: 14/umbraco-cms/reference/querying/itagquery.md
+11-14Lines changed: 11 additions & 14 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
@@ -18,21 +18,17 @@ After this you can use `_tagQuery` to access the `ITagQuery`.
18
18
19
19
If you're using it in controllers, you can inject it into the constructor like so:
20
20
21
-
{% hint style="warning" %}
22
-
The example below uses UmbracoApiController which is obsolete in Umbraco 14 and will be removed in Umbraco 15.
@@ -49,7 +46,7 @@ public class TagApiController : UmbracoApiController
49
46
```
50
47
51
48
{% hint style="warning" %}
52
-
`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)
53
50
{% endhint %}
54
51
55
52
## Examples
@@ -58,7 +55,7 @@ All examples are from a view using the injection shown above, but working with t
58
55
59
56
### GetAllContentTags(\[string tagGroup])
60
57
61
-
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
62
59
63
60
```csharp
64
61
@{
@@ -69,7 +66,7 @@ Get a collection of tags used by content items on the site, you can optionally p
69
66
70
67
### GetAllMediaTags(\[string tagGroup])
71
68
72
-
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
73
70
74
71
```csharp
75
72
@{
@@ -80,7 +77,7 @@ Get a collection of tags used by media items on the site, you can optionally pas
80
77
81
78
### GetAllMemberTags(\[string tagGroup])
82
79
83
-
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
84
81
85
82
```csharp
86
83
@{
@@ -91,7 +88,7 @@ Get a collection of tags used by members on the site, you can optionally pass in
91
88
92
89
### GetAllTags(\[string tagGroup])
93
90
94
-
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
95
92
96
93
```csharp
97
94
@{
@@ -152,7 +149,7 @@ Get a collection of tags by entity id (queries content, media and members), and
Copy file name to clipboardExpand all lines: 15/umbraco-cms/reference/querying/itagquery.md
+11-14Lines changed: 11 additions & 14 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
@@ -18,21 +18,17 @@ After this you can use `_tagQuery` to access the `ITagQuery`.
18
18
19
19
If you're using it in controllers, you can inject it into the constructor like so:
20
20
21
-
{% hint style="warning" %}
22
-
The example below uses UmbracoApiController which is obsolete in Umbraco 14 and will be removed in Umbraco 15.
@@ -49,7 +46,7 @@ public class TagApiController : UmbracoApiController
49
46
```
50
47
51
48
{% hint style="warning" %}
52
-
`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)
53
50
{% endhint %}
54
51
55
52
## Examples
@@ -58,7 +55,7 @@ All examples are from a view using the injection shown above, but working with t
58
55
59
56
### GetAllContentTags(\[string tagGroup])
60
57
61
-
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
62
59
63
60
```csharp
64
61
@{
@@ -69,7 +66,7 @@ Get a collection of tags used by content items on the site, you can optionally p
69
66
70
67
### GetAllMediaTags(\[string tagGroup])
71
68
72
-
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
73
70
74
71
```csharp
75
72
@{
@@ -80,7 +77,7 @@ Get a collection of tags used by media items on the site, you can optionally pas
80
77
81
78
### GetAllMemberTags(\[string tagGroup])
82
79
83
-
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
84
81
85
82
```csharp
86
83
@{
@@ -91,7 +88,7 @@ Get a collection of tags used by members on the site, you can optionally pass in
91
88
92
89
### GetAllTags(\[string tagGroup])
93
90
94
-
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
95
92
96
93
```csharp
97
94
@{
@@ -152,7 +149,7 @@ Get a collection of tags by entity id (queries content, media and members), and
0 commit comments