Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Insert Unique ID into page?

Started by Muut Archive 10 years ago · 1 replies · 663 views
10 years ago

When creating a new page via the Admin, is it possible to have a random number created and stored in the markdown frontmatter for that page? Or some other way to create a unique id number stored within the markdown?

10 years ago

Currently there is no way to do it.

Thinking loud, it could be a form field that you add to a page blueprint, and if it's a new page it generates a new incremental ID, whose current maximum value would be stored in site.yaml for example.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 673 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5337 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago