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

Creating serially numbered sub-pages

Started by M 8 years ago · 1 replies · 532 views
8 years ago

Hello,

my Name is Michael and I'm a new Grav user. I'm trying to set up a blog page according to the howto in the documentation cookbook. This works so far.

When I migrated the blog posts from the current website I noticed that I have multiple blog entries with the same name but different dates. If one creates an entry with an already existing title/folder this existing entry is opened. As there are other, technically untalented users that should also be able to create blog entries I need a fool-proof solution to make sure they don't overwrite existing entries. I would be perfectly happy when the blog post just get serially numbered, e.g. blog-post-00000 to blog-post-99999. But unfortunately I have not enough experience with twig and Grav, yet.

Would it be possible to achieve this, but only for sub-pages of /blog and how could it be done?

Best regards,
Michael

8 years ago

I think I forgot to mention that I'm talking about creating items with the admin plugin.

Suggested topics

Topic Participants Replies Views Activity
Support · by Paul Hodges, 4 weeks ago
19 483 5 days ago
Support · by Lauw, 7 days ago
2 99 6 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 3 weeks ago