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

Category in my blog routes

Started by Muut Archive 10 years ago · 2 replies · 429 views
10 years ago

Hi!

I will to create the following routes for my blog

  • /blog/post (for posts without category)
  • /blog/[category]/post (for posts with a category)

You cant help me?

Regards

10 years ago

You can create whatever folder structure you want. The URLs will map to your folder structure. Routing can help out. If you want it purely dynamic, then you'll have to do some coding. Start with Page Collections.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1333 9 years ago
Archive · by Muut Archive, 9 years ago
2 924 9 years ago
Archive · by Muut Archive, 9 years ago
2 4055 9 years ago
Archive · by Muut Archive, 9 years ago
1 2938 9 years ago
Archive · by Muut Archive, 9 years ago
3 1111 9 years ago