File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,9 @@ See the [editor guide](docs/editor-guide.md) for more information.
2222
2323Start by installing NuGet package (use [ Optimizely NuGet] ( https://nuget.optimizely.com/ ) ):
2424
25- dotnet add package Geta.Optimizely.Tags
25+ ```
26+ dotnet add package Geta.Optimizely.Tags
27+ ```
2628
2729Geta Tags library uses [ tag-it] ( https://github.com/aehlke/tag-it ) jQuery UI plugin for selecting tags.
2830To add Tags as a new property to your page types, you need to use the UIHint attribute like in this example:
@@ -52,7 +54,16 @@ Then, call `UseGetaTags` in the `Configure` method:
5254app .UseGetaTags ();
5355```
5456
55- Use ITagEngine to query for data:
57+ Also, you have to add Razor pages routing support.
58+
59+ ``` csharp
60+ app .UseEndpoints (endpoints =>
61+ {
62+ endpoints .MapRazorPages ();
63+ });
64+ ```
65+
66+ Use ` ITagEngine ` to query for data:
5667
5768``` csharp
5869IEnumerable < ContentData > GetContentByTag (string tagName );
You can’t perform that action at this time.
0 commit comments