Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Granular group-based page access (permissions)

Started by Tony Shaw 4 years ago · 0 replies · 536 views
4 years ago

For anyone trying to get a handle on publishing members-only or premium-only content in GRAV, I found this resource - opens in new tab/window - to be helpful/concise/accurate. Incorporating this content into the formal GRAV Groups and Permissions - opens in new tab/window - documentation would be of benefit.

Tangentially, I would love to see someone post a twig or PHP snippet (or a link to a pre-built plugin) capable of iterating over all the *.yaml files in the users/accounts directory to make wholesale edits to the groups list, for example to remove the - paid group from a member who has failed to renew his/her membership, so that - meeting some expiry criterion - each...

YAML
groups:
  - registered
  - paid

... becomes ...

TXT
groups:
  - registered

Finally, is there a GRAV "Register Now" plugin (or option) that can piggyback on the login plugin?

👍 1

Suggested topics

Topic Participants Replies Views Activity
Support · by complanar, 6 days ago
6 140 16 hours ago
Support · by Rick Beebe, 6 days ago
2 100 2 days ago
Support · by blu3prince, 3 days ago
0 52 3 days ago
Support · by alex, 4 days ago
2 92 3 days ago
Support · by Marcel, 2 weeks ago
1 143 4 days ago