Skip to content

Commit

Permalink
Update Resource docs re referencing TagHelpers (#7105)
Browse files Browse the repository at this point in the history
  • Loading branch information
deanmarcussen authored Sep 19, 2020
1 parent 52dcd9c commit d64a4cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/docs/reference/modules/Resources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ resourceManager.AppendMeta(new MetaEntry { Name = "keywords", Content = "orchard

### Using the Tag Helpers

From your module, in the `_ViewImports.cshtml` or your view, add `@addTagHelper *, OrchardCore.ResourceManagement`.
From your module, in the `_ViewImports.cshtml` or your view, add `@addTagHelper *, OrchardCore.ResourceManagement`, and take a direct reference to the `OrchardCore.ResourceManagement` nuget package.

#### Register a named script or stylesheet

Expand Down Expand Up @@ -535,6 +535,9 @@ These should be rendered at the bottom of the `<body>` section.
</body>
```

!!! note
When using tag helpers in Razor, you must take a direct reference to the `OrchardCore.ResourceManagement` nuget package in each theme or module that uses the tag helpers. This is not required when using Liquid.

### Logging

If you register a resource by name and it is not found this will be logged as an error in your `App_Data/Logs` folder.

0 comments on commit d64a4cb

Please sign in to comment.