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

Blog post URL format

admin first-time

Started by Florian Heiber 6 years ago · 1 replies · 898 views
6 years ago

Hey there,

I'm currently getting started with Grav.

With my current CMS, I used URLs including the year, the month, and the title of the post. So basically like this: https://mywebsite.com/2020/01/my-post. With Grav, however, I can't find a way to change it from https://mywebsite.com/my-post to the old format.

Am I just missing something or is this tricky?

Thanks a lot!

Cheers,
– Flo

6 years ago

There are a couple of posts on this from before. Each one tackles the problem differently, so you'll have to see which one suits your use-case best.

One deals with the problem by getting you to create folders for the relevant dates:
/forum/archive/best-way-to-add-a-posts-date-to-the-url-slug-t7974?u=misterjaytee

The other one shows how it is done with changes to the filename format (from what I can deduce):
/forum/archive/blog-permalink-format-t6837?u=misterjaytee

<br />

If you just wanted to have the date in the URL and don't need the folder structure, you could simply change the slug by clicking Options on the page (assuming you're using the Admin plugin) and changing the Folder Name to something like 2020-03-15-here-is-my-dated-blog-post.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 53 9 hours ago
Support · by Anna, 3 days ago
2 59 12 hours ago
Support · by Justin Young, 13 hours ago
1 30 13 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago