Need logic to control web widget visibility by language


  • Matthew Pasteris
    Comment actions Permalink

    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">
    <span class="dropdown-menu dropdown-menu-end" role="menu">
    {{#each alternative_locales}}
    <a href="{{url}}" dir="{{direction}}" rel="nofollow" role="menuitem">

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


Please sign in to leave a comment.

Powered by Zendesk