Skip to content
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

Links not working when changing title of subpages #10

Open
KonradHoeffner opened this issue May 30, 2016 · 3 comments
Open

Links not working when changing title of subpages #10

KonradHoeffner opened this issue May 30, 2016 · 3 comments

Comments

@KonradHoeffner
Copy link

KonradHoeffner commented May 30, 2016

When I rename the title of one of the subpages in the skeleton, lets say "title: Resume" to "title: Lebenslauf" in resume.md, the link is not functional anymore. The same happens with:

title: Resume
menu: Lebenslauf
@KonradHoeffner KonradHoeffner changed the title Links gone when changing title of subpages Links not working when changing title of subpages May 30, 2016
@violoncelloCH
Copy link

violoncelloCH commented Oct 3, 2016

Hi

I just had the same issue.
In line 36 of user/themes/ceevee/templates/partials/navigation.html.twig there you have:
<a class="smoothscroll" href="#{{ _self.pageLinkName(module.menu) }}">{{ module.menu }}</a>
If you change the {{_self.pageLinkName(module.menu) }} to {{_self.pageLinkName(module.title) }} and specify the title: as it was in the original english version (the title won't be displayed but with this fix is used to generate the link which refers to the "id" of the element), and you can set the menu: to any (German) name you want to appear in the navigation bar.
So in fact if you modify the navigation.html.twig, you can set the header of the moduls as in your example as title: Resume and menu: Lebenslauf and it should work.

Best wishes
Jones
16 years old student

@violoncelloCH
Copy link

Oh, just realized:
These titles were shown in small "mobile" layout of the call-, testimonial- and contact-module. But you can change this. E.g. line 4 in the call.html.twig. Just change page.header.title to page.header.menu so it will show your entry from menu: * instead of title: call-to-action.
Sorry for this.

@jnizniowski
Copy link

I met this issue today. I used a custom variable anchor in the modules's front-matter, where a value is the old menu value, e.g.:

menu: Kontakt
title: skontaktuj się ze mną
anhor: contact

Then I changed the line 36 of navigation.html.twig to:

<a class="smoothscroll" href="#{{ _self.pageLinkName(module.header.anchor) }}">{{ module.menu }}</a>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants