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

Link with variant doesn’t work #62

Open
klodeckl opened this issue Aug 10, 2023 · 0 comments
Open

Link with variant doesn’t work #62

klodeckl opened this issue Aug 10, 2023 · 0 comments

Comments

@klodeckl
Copy link

klodeckl commented Aug 10, 2023

The link with variant for another language doesn’t work. I first thought the problem is that the page is not translated, so I translated the page. But the link still doesn’t appear. Here is my config:

properties:
pageUid: '9040'
linkText: Datenschutzbestimmungen
fluidAdditionalAttributes:
required: required
type: LinkedCheckbox
identifier: linkedcheckbox-1
label: 'Ich akzeptiere die '
variants:
-
identifier: language-variant-1
condition: 'siteLanguage("locale") == "en_GB.UTF-8"'
label: 'I accept the '
properties:
linkText: 'privacy policy'
validators:
-
identifier: NotEmpty

But even if I override pageUid to the translated page it still doesn’t work:

properties:
pageUid: '9040'
linkText: Datenschutzbestimmungen
fluidAdditionalAttributes:
required: required
type: LinkedCheckbox
identifier: linkedcheckbox-1
label: 'Ich akzeptiere die '
variants:
-
identifier: language-variant-1
condition: 'siteLanguage("locale") == "en_GB.UTF-8"'
label: 'I accept the '
properties:
pageUid: '9041'
linkText: 'privacy policy'
validators:
-
identifier: NotEmpty

TYPO3 11.5.30, linked_checkbox 4.0.0. Non composer mode.

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

No branches or pull requests

1 participant