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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Creating serially numbered sub-pages

Started by M 8 years ago · 1 replies · 402 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 Thomas, 1 week ago
2 57 14 hours ago
Support · by Anna, 3 days ago
2 65 17 hours ago
Support · by Justin Young, 18 hours ago
1 33 18 hours ago
Support · by Duc , 1 week ago
2 68 5 days ago
Support · by Colin Hume, 1 week ago
2 60 6 days ago