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.

General

The concept of "userid" for pages, folders

plugins theme

Started by Joaquim Homrighausen 3 years ago · 0 replies · 343 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 Jerry Hunt, 4 days ago
2 80 10 hours ago
General · by pamtbaau, 15 hours ago
1 51 15 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago