CrestApps.Components.Users
1.10.0-preview-0020
See the version list below for details.
dotnet add package CrestApps.Components.Users --version 1.10.0-preview-0020
NuGet\Install-Package CrestApps.Components.Users -Version 1.10.0-preview-0020
<PackageReference Include="CrestApps.Components.Users" Version="1.10.0-preview-0020" />
paket add CrestApps.Components.Users --version 1.10.0-preview-0020
#r "nuget: CrestApps.Components.Users, 1.10.0-preview-0020"
// Install CrestApps.Components.Users as a Cake Addin #addin nuget:?package=CrestApps.Components.Users&version=1.10.0-preview-0020&prerelease // Install CrestApps.Components.Users as a Cake Tool #tool nuget:?package=CrestApps.Components.Users&version=1.10.0-preview-0020&prerelease
Features
User Display Name
Provides a way to change how the user name is displayed. To set the display name format, navigate to Configuration
>> Settings
>> User Display Name
.
If you want to display the user display in your project via code, you may do so my using the IDisplayNameProvider
interface.
Shapes
The shape UserBadgeContext
is responsible of displaying info about the user. You may implement DisplayDriver<UserBadgeContext>
driver to inject items into the UserBadgeContext
shape. This shape is rendered using the following display types
- The
Summary
display type is used to render the logged user info in the navbar. - The
AdminSummary
display type is used to render the author info for each content item in the content item listing page.
The standard templates display the Header
zone. Below is a list of the default views along with their respective names:
UserBadgeContext.AdminSummary.cshtml
<span class="badge ta-badge font-weight-normal" data-bs-toggle="tooltip" title="@T["Author"]">
@if (Model.Header != null)
{
@await DisplayAsync(Model.Header)
}
</span>
UserBadgeContext.Summary.cshtml
@if (Model.Header != null)
{
@await DisplayAsync(Model.Header)
}
User Avatar
Provides a way to display an avatar for each user. To change the default settings, navigate to Configuration
>> Settings
>> User Avatars
.
Extensions
Dynamic Cache
When the "Dynamic Cache" feature is enabled along with "User Avatar" or "User Display Name", it optimizes performance by caching shapes associated with user display names and avatars. If you wish to manually invalidate the cache, you can utilize the following tags:
- The
user-display-name
tag will clear the cached shapes for all users. - The
username:{username}
tag will clear the cache for a specific user with the username{username}
. Replace{username}
with the actual username of the user you want to invalidate.
Liquid
When the "Liquid" feature is enabled, a new helper to display the user's display name will become available (i.e, display_name
). Here is an example
{{ Model.User | display_name }}
Users
When both the Users
and User Display Name
featured are enabled, the search functionality within the Users UI will expand to include fields such as display name, first name, middle name, or last name in the search results.
Additionally, when the UserPickerField
field is used, the display text will show the display name.
Lastly, since we added a recipe step to allow you to re-index users. This step will update all enabled user by default using a batch size of 250. To re-index all of your users run the following recipe
{
"steps": [
{
"name": "indexUsers",
"includeDisabledUsers": false,
"batchSize": 250
}
]
}
The includeDisabledUsers
parameter within the indexUsers
step is optional and allows for the indexing of disabled users if desired. Moreover, the batchSize
parameter provides the ability to adjust the update batch size. The default value is set at 250 and can be increased to 1000 if necessary.
Release Notes
v1.9
Release date: 11/9/2023
Due to performance improvements in OrchardCore, this version requires OrchardCore version 1.8.0-preview-17757
and up
v1.8
Release date: 2023
These features are available for projects that use OrchardCore version 1.7.0-preview-17618
and up.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- CrestApps.Components.Core (>= 1.10.0-preview-0020)
- OrchardCore.ContentManagement (>= 2.0.0-preview-18299)
- OrchardCore.Contents (>= 2.0.0-preview-18299)
- OrchardCore.ContentTypes.Abstractions (>= 2.0.0-preview-18299)
- OrchardCore.DisplayManagement (>= 2.0.0-preview-18299)
- OrchardCore.Media (>= 2.0.0-preview-18299)
- OrchardCore.Module.Targets (>= 2.0.0-preview-18299)
- OrchardCore.Navigation.Core (>= 2.0.0-preview-18299)
- OrchardCore.Users (>= 2.0.0-preview-18299)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.10.0-preview-0023 | 372 | 9/9/2024 |
1.10.0-preview-0022 | 145 | 8/26/2024 |
1.10.0-preview-0021 | 86 | 8/26/2024 |
1.10.0-preview-0020 | 124 | 8/7/2024 |
1.10.0-preview-0009 | 115 | 7/22/2024 |
1.10.0-preview-0008 | 172 | 6/6/2024 |
1.10.0-preview-0007 | 93 | 6/6/2024 |
1.10.0-preview-0006 | 192 | 5/15/2024 |
1.10.0-preview-0005 | 115 | 5/9/2024 |
1.10.0-preview-0004 | 98 | 5/8/2024 |
1.10.0-preview-0003 | 105 | 5/7/2024 |
1.10.0-preview-0002 | 150 | 3/8/2024 |
1.10.0-preview-0001 | 110 | 3/7/2024 |
1.9.3 | 523 | 1/17/2024 |
1.9.2 | 99 | 1/17/2024 |
1.9.1 | 208 | 1/17/2024 |
1.9.0 | 351 | 11/9/2023 |
1.8.8 | 143 | 11/9/2023 |
1.8.7 | 120 | 11/9/2023 |
1.8.6 | 123 | 11/9/2023 |
1.8.5 | 188 | 10/30/2023 |
1.8.4 | 123 | 10/30/2023 |
1.8.3 | 209 | 10/5/2023 |
1.8.2 | 165 | 9/22/2023 |
1.8.1 | 145 | 9/19/2023 |
1.8.0 | 226 | 9/1/2023 |
1.8.0-alpha | 138 | 8/28/2023 |
1.7.6 | 156 | 8/23/2023 |
1.7.5 | 150 | 8/22/2023 |
1.7.4 | 151 | 8/21/2023 |
1.7.3 | 136 | 8/21/2023 |
1.7.1 | 146 | 8/21/2023 |
1.7.0 | 165 | 8/15/2023 |