You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I change the config for Shortcode-Citation at page config by using the GUI/Normal mode (e.g. configure another text with "heading_text"), than this config haven't any effect.
The issue is based on saving the page config within section "shortcode-citation" (with dash) instead section "shortcode_citation" (with underscore). But, the TWIG template of Shortcode-Citation access the page config with an underscore.
There are two solutions:
Change the fields definition in blueprints/default.yaml (from "shortcode-citation" to "shortcode_citation").
Change the TWIG template templates/partials/citations.html.twig (line 4 from "{% set page_config = page.header.shortcode_citation %}" to "{% set page_config = page.header.shortcode-citation %}"
From my point of view, the first option seems the better one: Page configs/YAML uses often variables with "underscore" instead "dashes", because "dash" has another meaning in YAML too.
The text was updated successfully, but these errors were encountered:
Hi
If I change the config for Shortcode-Citation at page config by using the GUI/Normal mode (e.g. configure another text with "heading_text"), than this config haven't any effect.
The issue is based on saving the page config within section "shortcode-citation" (with dash) instead section "shortcode_citation" (with underscore). But, the TWIG template of Shortcode-Citation access the page config with an underscore.
There are two solutions:
From my point of view, the first option seems the better one: Page configs/YAML uses often variables with "underscore" instead "dashes", because "dash" has another meaning in YAML too.
The text was updated successfully, but these errors were encountered: