Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Granular group-based page access (permissions)

Started by Tony Shaw 3 years ago · 0 replies · 379 views
3 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 Thomas, 1 week ago
2 53 11 hours ago
Support · by Anna, 3 days ago
2 60 13 hours ago
Support · by Justin Young, 14 hours ago
1 30 14 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago