Hi there,
I’m trying to create 2 versions of a menu :
Here isthe corresponding section in my config.yml file :
defaultContentLanguage: fr
languages:
fr:
languageName: Français
weight: 1
menu:
main:
- identifier: test
name: test
url: /test
weight: 1
- identifier: offers
name: Offres
url: /offres
weight: 2
en:
languageName: English
weight: 2
menu:
main:
- identifier: test
name: test
url: /test
weight: 1
- identifier: offers
name: Offers
url: /offers
weight: 2
The first entry, test, is a regular one. It works fine in both FR and EN.
Now, I would like a dropdown menu on my “Offers” entry, from the .md file that I have created here :
content/en/offers/offer-1.md
content/en/offers/offer-2.md
content/fr/offers/offer-1.md
content/fr/offers/offer-2.md
Here are the frontmatters of those files :
content/en/offers/offer-1.md :
---
title: offer 1 EN
linkTitle: offer-1-en
menu:
main:
parent: offers
weight: 1
type: offers
---
...
content/fr/offers/offer-1.md:
---
title: offer 1 FR
linkTitle: offer-1-fr
menu:
main:
parent: offers
weight: 1
type: offers
---
...
Obviously, I want my english .md files to only populate my english menu, and same for the french version.
This logic worked perfectly fine for the fr menu, but this isn’t working for the english one. I happen to see the english pages in my french menu, they seem to overwrite each other.
I have tried using different identifiers, but I can’t get it to work. Surely I’m missing something, but I can’t find it from the docs.
Thank you for your help.