Anyone there who knows how to access account information from within twig ?
something like ...
TWIG
{{ accounts.admin.bio }}
---
Anyone there who knows how to access account information from within twig ?
something like ...
{{ accounts.admin.bio }}
---
You can refer to the current authenticated user with
{{dump(grav.user.authenticated)}}
{{dump(grav.user.email)}}
Accounts information regarding other users is not available by default, you'll need a plugin to make that available in twig
Seems not to work with the recent version of grav. So I made myself an plugin to publish all account data put into an 'public' section. Big question is: How to cache that?
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 1 | 674 | 1 week ago | ||
| 0 | 3043 | 9 years ago | ||
| 2 | 1983 | 9 years ago | ||
| 2 | 5337 | 9 years ago | ||
| 1 | 4134 | 9 years ago |