feat(page_list): add display_field argument #35

Merged
Carsten merged 1 commit from feature/page-list-display-field into main 2026-06-03 10:01:04 +02:00
Owner

Add a display_field argument that controls which frontmatter field is
used as the link text in a page_list, instead of always using title.
Falls back to title if the specified field is absent on a given page.

Useful for author lists where a sort_name field (e.g. 'Blixen, Karen')
should be displayed while the title field remains 'Karen Blixen'.

Also exclude display_field from being treated as a filter, alongside
the existing limit exclusion, via a shared _RESERVED set.

Add a display_field argument that controls which frontmatter field is used as the link text in a page_list, instead of always using title. Falls back to title if the specified field is absent on a given page. Useful for author lists where a sort_name field (e.g. 'Blixen, Karen') should be displayed while the title field remains 'Karen Blixen'. Also exclude display_field from being treated as a filter, alongside the existing limit exclusion, via a shared _RESERVED set.
Add a display_field argument that controls which frontmatter field is
used as the link text in a page_list, instead of always using title.
Falls back to title if the specified field is absent on a given page.

Useful for author lists where a sort_name field (e.g. 'Blixen, Karen')
should be displayed while the title field remains 'Karen Blixen'.

Also exclude display_field from being treated as a filter, alongside
the existing limit exclusion, via a shared _RESERVED set.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Carsten/NomadNet_CMS_Starter!35
No description provided.