Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE-161: General Updates on Formatters and Libraries + Markdown Twig extension #163

Merged
merged 6 commits into from
Aug 15, 2021

Conversation

DiegoPino
Copy link
Member

@DiegoPino DiegoPino commented Jul 14, 2021

What?

Many fixes and still WIP but quite good and needed.

See #161 but also #162

This also updates

  • Mirador to 3.1.1

  • replay.web to latest + Deep Links

  • Markdown back and forth (with D8 compat) Twig Extension

  • Fixes "Display Settings" tab to respect proper Field UI permissions (not former node.update which makes no sense for our use case) and also takes in account forced Display settings (like when you choose one instead of letting this module map one based on Type)

  • This also fixes via JS a Mirador issue where on Chrome/Firefox Videos would not get their media updated on Item Click/change. Was not an issue Safari. @dmer please test. I want to merge this into RC3 as soon as possible even if I do not have all Formatters updated to use JMESPATHS in this pass.

DiegoPino and others added 5 commits June 11, 2021 11:37
We go for a custom extension here since the official one in Twig requires us to really write a full Service but also limits us on Drupal 8. Only Twig 2.4 is supported. This adds two new dependencies.

usage:

{{ data.description|markdown_2_html }}
@alliomeria this should do it. For the sake of time i will add this with 161 in a single commit since this also adds Markdown (and so many other things) and solves #144

This forces two permissions to be OR -ed. Means either Content: Administer display or Add, edit, and delete custom display modes. Wonder if that is enough? Or should we just go for the first?
Only use "administer node display" which translates in human to Content: Administer display
@DiegoPino DiegoPino added this to the 1.0.0-RC3 milestone Jul 14, 2021
@DiegoPino DiegoPino added bug Something isn't working enhancement New feature or request Field Formatter The thing that glues the pieces and adds glitter Javascript Favourite language of a PHP developer Twig Twig template processing View Mode Many fields, each one with a formatter that renders your ADOs labels Jul 14, 2021
@DiegoPino DiegoPino self-assigned this Jul 14, 2021
@DiegoPino DiegoPino changed the title ISSUE-161: Allow fine JMESPATH selection for all Media Driven formatters + Markdown Twig extension ISSUE-161: General Updates on Formatters and Libraries + Markdown Twig extension Aug 15, 2021
@DiegoPino DiegoPino merged commit 9b0bc40 into 1.0.0-RC3 Aug 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request Field Formatter The thing that glues the pieces and adds glitter Javascript Favourite language of a PHP developer Twig Twig template processing View Mode Many fields, each one with a formatter that renders your ADOs
Projects
None yet
1 participant