This module enables user avatar using gravatar service.
1.4.1
Profile
Product | Module |
---|---|
OrchardCore | Users (OrchardCore.Users ) |
Name | Gravatar (OrchardCoreContrib.Gravatar ) |
Description | Displays the user avatar on the admin menu. |
Dependencies | OrchardCore.Users |
Name | Version |
---|---|
OrchardCoreContrib.Gravatar |
1.4.1 |
OrchardCoreContrib.Gravatar |
1.4.0 |
OrchardCoreContrib.Gravatar |
1.3.0 |
OrchardCoreContrib.Gravatar |
1.2.0 |
OrchardCoreContrib.Gravatar |
1.1.0 |
OrchardCoreContrib.Gravatar |
1.0.0 |
- Install the
OrchardCoreContrib.Gravatar
NuGet package to your Orchard Core host project. - Go to the admin site
- Select Configuration -> Features menu.
- Enable the
Gravatar
feature. - User avatar should be displayed on the user menu.
The following filters allow for gravatar manipulation:
gravatar_url
Returns the URL of a gravatar, based on the email and optional size.
Input
{{ '[email protected]' | gravatar_url }}
{{ '[email protected]' | gravatar_url: size:32 }}
Output
http://www.gravatar.com/avatar/cbf0a05ad7eead6355a35843adc9d1c9?s=24&r=PG
http://www.gravatar.com/avatar/cbf0a05ad7eead6355a35843adc9d1c9?s=32&r=PG