Enhancement: Add support for choice fields with ID and Title #97

Closed
opened 2026-10-05 02:25:16 +02:00 by adam · 0 comments
Owner

To have a more dynamic approach for setting choice field values and update these in the site generation process, it would be nice to have support for ID and Title.

{
          "title": "Multi-select with ID",
          "name": "choiceId",
          "type": "choice",
          "choices": [
            { "id": 1, "title": "Choice 1" },
            { "id": "2", "title": "Choice 2" },
            { "id": "3", "title": "Choice 3" }
          ],
          "multiSelect": true 
}

The user can choose if they want to use a string or { id: string; title: string} object.

To have a more dynamic approach for setting choice field values and update these in the site generation process, it would be nice to have support for ID and Title. ```json { "title": "Multi-select with ID", "name": "choiceId", "type": "choice", "choices": [ { "id": 1, "title": "Choice 1" }, { "id": "2", "title": "Choice 2" }, { "id": "3", "title": "Choice 3" } ], "multiSelect": true } ``` The user can choose if they want to use a `string` or `{ id: string; title: string}` object. <!-- github-sync-id:1011822761 -->
adam closed this issue 2026-10-05 02:25:16 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#97