Kookaburra multilanguage menu question

Hi all,
I am using
<div data-lang="de">Generationen</div><div data-lang="en">Generations</div>
in my menu set.


I can link to /#generationen in german language. But how can I link to /#generations if I switch to english?

In the Link to field I tried

<div data-lang="de">/#generationen</div><div data-lang="en">/#generations</div> but of course doesn’t work.

Is there any chance to get it work?

Thanks in advance and best regards,
Oliver

I don’t think this is supported or needed. Just have one target to link to and then have separate sections for each language:

<div id="generations">

   <div data-lang="de">
      <h2>Generationen</h2>
      ....
   </div> 

   <div data-lang="en">
      <h2>Generations</h2>
      ....
   </div>

</div>
1 Like

Hi Daniel,

if it would be that easy.
I’m working with an accordion, where the anchor tag #generations should open. To understand what I mean please have a look to my website generationen.org
Please find Generationen in the german menu. It will open the accordion with image and text. I want the same effect when I switch to the english menu.

Best regards,
Oliver

Hi Oliver,

Looks like you have two accordion structures. You could try to have just one and then have each artist entry available with the two language options. This way you can get around the menu link limitation.

Certainly there’s a way to change the links using Javascript, but that’s beyond by pay grade :frowning:

Viel Spass,
Daniel

Thank you Daniel,
I will try that tomorrow…
:+1:

Schöne Grüße,
Oliver

@volvoxturbo What @Daniel is suggesting is in line with how things are built. The menus, for example, do not support setting different hyperlinks, only changing the text within the hyperlink.

So easy, thanks a lot Daniel, I got it.
And thank you Matt for explaining!

Best regards,
Oliver