Need logic to control web widget visibility by language

1 Comments

  • Matthew Pasteris

    You might be able to do that with the locale variable that already exists. This comes to mind (footer language selector):

    <div class="footer-language-selector">
    {{#if alternative_locales}}
    <div class="dropdown language-selector" aria-haspopup="true">
    <a class="dropdown-toggle">
    {{current_locale.name}}
    </a>
    <span class="dropdown-menu dropdown-menu-end" role="menu">
    {{#each alternative_locales}}
    <a href="{{url}}" dir="{{direction}}" rel="nofollow" role="menuitem">
    {{name}}
    </a>
    {{/each}}
    </span>
    </div>
    {{/if}}

    I imagine you can repurpose the "alternative locales" bit.

    0

Please sign in to leave a comment.

Powered by Zendesk