Skip to content

Commit

Permalink
Closes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
valdisiljuconoks authored Sep 12, 2022
1 parent 3e74c9a commit d468cd0
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ See the [editor guide](docs/editor-guide.md) for more information.

Start by installing NuGet package (use [Optimizely NuGet](https://nuget.optimizely.com/)):

dotnet add package Geta.Optimizely.Tags
```
dotnet add package Geta.Optimizely.Tags
```

Geta Tags library uses [tag-it](https://github.com/aehlke/tag-it) jQuery UI plugin for selecting tags.
To add Tags as a new property to your page types, you need to use the UIHint attribute like in this example:
Expand Down Expand Up @@ -52,7 +54,16 @@ Then, call `UseGetaTags` in the `Configure` method:
app.UseGetaTags();
```

Use ITagEngine to query for data:
Also, you have to add Razor pages routing support.

```csharp
app.UseEndpoints(endpoints =>
{
endpoints.MapRazorPages();
});
```

Use `ITagEngine` to query for data:

```csharp
IEnumerable<ContentData> GetContentByTag(string tagName);
Expand Down

0 comments on commit d468cd0

Please sign in to comment.