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

Insert Unique ID into page?

Started by Muut Archive 9 years ago · 1 replies · 519 views
9 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?

9 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 1350 9 years ago
Archive · by Muut Archive, 9 years ago
2 934 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2947 9 years ago
Archive · by Muut Archive, 9 years ago
3 1118 9 years ago