I have a new question
I have a parent category with different sections including several posts.
Now, i dont’ create a post with the same name while they are not in the same section.
I would like post URLs to include the name of the section.
To get (for example):
• filmography/audio/rouge
• filmography/clips/rouge
Since a new installation, I create one category with subpages for pages. That’s ok, each page go to a subpage folder. Good.
Maybe…
• in first page “category”, I would like show each block = one subpages > list of page.
• and of course, i create a new post from this same page.
I guess I need to adjust my blueprints sections to indicate a sub level?
When each post fits into exactly 1 category, I’ld setup my site architecture with a subfolder for the category, and in it all of ‘its’ posts (as @texnixe suggests).
When a post can be a member of multiple different categories, you can’t reflect that in the URL without creating duplicate content (which is a bad, bad thing). Then you’ld need to set up category-pages with generic slugs like /posts/category-id which lists the posts that are tagged for it. Your post-slug will probably be something generic like /post/post-id.
title: Filmography Audio
# Each page can have an icon that is shown in page listings when no preview image is available.
icon: 📝
# Custom descriptions of page statuses depending on use case
# More about page statuses: https://getkirby.com/docs/reference/panel/blueprints/page#statuses
status:
draft: false
unlisted:
label: Hidden Page
text: The page is not listed in the main menu
listed:
label: Menu Page
text: The page is listed in the main menu
# Limit subpage display to certain templates in a page preset
pages:
template: default
# A page preset can have a freely defined set of fields
# List of all available field types: https://getkirby.com/docs/reference/panel/fields
fields:
audio_text:
label:
fr: Texte
en: Text
type: textarea
size: small
video:
label:
fr: Vidéo
en: Video
type: url
icon: video
audio_album:
label:
fr: Extrait de…
en: Extract of…
type: text
width: 1/4
audio_year:
label:
fr: Année
en: Year
type: number
width: 1/4
audio_real:
label:
fr: Réalisateur
en: Real.
type: text
width: 1/4
icon: user
audio_tracktime:
label:
en: Time
fr: Durée
type: time
step: 1
width: 1/4
audio_credits:
label:
fr: Crédits supplémentaires
en: Additionnal Comments
type: textarea
size: small
cover:
label:
fr: Image
en: Image
type: files
sections/filmography-audio
type: pages
headline: Audio
template: filmography-audio-single
empty: No notes yet
layout: list
info: "{{ page.audio_year.toDate('Y') }}"
That looks good, the only missing piece is that your filmography-audio section doesn’t have a parent page. So you would have to use the category subpage as parent here. And of course for the other categories as well.