Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Insert Unique ID into page?

Started by Muut Archive 10 years ago · 1 replies · 614 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 Deleted User, 9 years ago
0 2578 9 years ago
Archive · by Muut Archive, 9 years ago
2 1698 9 years ago
Archive · by Muut Archive, 9 years ago
2 4990 9 years ago
Archive · by Muut Archive, 9 years ago
1 3818 9 years ago
Archive · by Muut Archive, 9 years ago
3 1805 9 years ago