Skip to content

Update: state displayTitle's link to title in the schema (fixes #875) - #876

Open
taylortom wants to merge 1 commit into
masterfrom
issue/875
Open

Update: state displayTitle's link to title in the schema (fixes #875)#876
taylortom wants to merge 1 commit into
masterfrom
issue/875

Conversation

@taylortom

Copy link
Copy Markdown
Member

Fixes #875

Update

  • Add _adapt.linkedTo: "title" to displayTitle, stating the relationship the DisplayTitle editor name currently only implies.

_backboneForms is left untouched, so anything consuming it behaves exactly as before — this is purely additive, and an annotation either way, so there's no runtime change and existing content is unaffected. The same key is proposed for the large/small image pair in adaptlearning/adapt-contrib-graphic#132, which is what makes it a reusable vocabulary rather than a second special case.

Testing

  1. Confirm schema/content.schema.json still parses and content renders as before — the added keyword is inert at runtime.

displayTitle mirrors title in the editor, but the schema only names the
DisplayTitle editor - what that editor name means is hardcoded in the tool
resolving it, so the relationship can't be reused for any other pair of
fields. Add _adapt.linkedTo to say it directly. Additive: _backboneForms is
unchanged, so nothing consuming it is affected, and no runtime behaviour
changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

displayTitle's link to title should be stated in the schema, not implied by an editor name

2 participants