Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Creating serially numbered sub-pages

Started by M 8 years ago · 1 replies · 590 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 complanar, 6 days ago
6 137 12 hours ago
Support · by Rick Beebe, 6 days ago
2 99 2 days ago
Support · by blu3prince, 3 days ago
0 50 3 days ago
Support · by alex, 4 days ago
2 91 3 days ago
Support · by Marcel, 2 weeks ago
1 142 3 days ago