Skip to content

Link with variant doesn’t work #62

@klodeckl

Description

@klodeckl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions