Skip to content

Add extra fields option for image and imagelist fields#3292

Merged
bobdenotter merged 4 commits intobolt:masterfrom
xiaohutai:feature/extra-fields-for-image
Aug 24, 2022
Merged

Add extra fields option for image and imagelist fields#3292
bobdenotter merged 4 commits intobolt:masterfrom
xiaohutai:feature/extra-fields-for-image

Conversation

@xiaohutai
Copy link
Copy Markdown
Contributor

@xiaohutai xiaohutai commented Aug 17, 2022

For both images and imagelists, you can now add an extra property extra:

extra:
    title:
        label: Titel
        placeholder: Placeholder
    caption:
        label: Caption
    teaser:
        label: Teaser
        placeholder: De teaser in het Nederlands
    teaser_en:
        label: Teaser (EN)
        placeholder: De teaser in het Engels

For now I have enabled label and placeholder, but since it's an key,value-array we can expand it if needed. (I initially had it as: attrib: [ foo, bar, baz ] to mimick Bolt 3).


This seems to work for me. Somehow the solution looks way simpler than I thought. So please double-check if I haven't missed anything.

@xiaohutai xiaohutai changed the title [WIP] Add extra fields option for image field Add extra fields option for image and imagelist fields Aug 23, 2022
Copy link
Copy Markdown
Member

@bobdenotter bobdenotter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did two ninja-edits! Looks good, otherwise! 👍

@bobdenotter bobdenotter merged commit ad904f1 into bolt:master Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants