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

The concept of "userid" for pages, folders

plugins theme

Started by Joaquim Homrighausen 3 years ago · 0 replies · 540 views
3 years ago

Not sure if this should go into "Plugins" or "Themes" or here. I'm trying to get the grasp of plugin and theme development in the world of Grav and am curious about the concept of "userid" (or "author").

It seems like there's no central idea around a "userid" for a page, for example. Maybe I mistunderstand all of this completely, but this makes it very hard to do certain things when a page is loaded/displayed/rendered.

"Certain things" could be anything from displaying a special image, a badge, logging access, or whatever it is. The point being that this is triggered by the "userid" (or possibly "groupid") of the post, and/or by the same data from the currently logged in user.

It seems like "Author:" is optional for posts/pages, and when used, quite often contain a human readable name like "John Doe" rather than "johndoe".

Am I getting all this wrong (probably)? 🙂

Suggested topics

Topic Participants Replies Views Activity
General · by jeremycherfas, 4 days ago
3 95 2 hours ago
General · by Old Man Umby, 2 days ago
1 60 2 days ago
General · by Sebastian, 4 days ago
1 81 4 days ago
General · by Andy Miller, 2 weeks ago
0 216 2 weeks ago
General · by ready-4-IT, 6 months ago
1 716 3 weeks ago