-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't generate menu correctly #23
Comments
hi @felijung, i think you need flamingo.plugins.I18N. 'en' or 'de' shouldn't be menu entries but languages, managed by flamingos i18n plugin. Then you can create a menu for 'de' and 'en' Can you post a link to your projekt? |
Hi,
both versions of about_[lang].rst have now two thoughts/questions on that:
|
Hi @felijung, Sorry that it took me so long! FTR: i tried to reach you on a private channel, so i can see your whole project and work out a solution for your specific problem and improve the flamingo documentation afterwards. What you need here are two seperate menus: MENU = {
'de': [
['Home', 'home.rst'],
['About', [
['Über', 'about/about_de.rst']
]]
],
'en': [
['Home', 'home.rst'],
['About', [
['About', 'about/about_en.rst'],
]]
],
} In your templates you can access your language specific menu like this: {{ context.plugins.Menu.menu[content.lang] }} |
Hi,
when I change away from the default "catergoy-1" & "category-2" to let's say categories "en" and "de" and then have files therein, I cannot generate a correct menu. The html is generated, but for the menu to show the new category I can manually edit the settings.py to the new names of categories - but that is not the intended way I suspect?
The text was updated successfully, but these errors were encountered: