Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Link to renamed modular "sub"page doesnt work

Started by John 7 years ago · 2 replies · 541 views
7 years ago

Hi i have small problem with my modular pages. Im using ceevee skeleton which contains page called portfolio. I wanted to rename it to something else, like "test", then i changed the file name to "_test", and then i edited list of modular pages in modular.md so it looks like this:

onpage_menu: true
content:
items: @self.modular
order:
by: default
dir: asc
custom:

  • _about
  • _resume
  • _test
  • _call
  • _testimonials
  • _contact

Then i cleared caches and looked at the page. The page menu on top of website shows test correctly, but when i click on it, im not being moved to the correct subpage. When i rename it back to portfolio, then it works. Could you please tell me what am i missing on modular? Thank you.

7 years ago

You changed the folder name to _test?
Did you change your markdown file to test.md?
If so you also have to change your twig template to test.html.twig

7 years ago

I did all of that, it still didint work.

Suggested topics

Topic Participants Replies Views Activity
Support · by Marcel, 5 days ago
0 83 5 days ago
Support · by JakobDB, 6 days ago
1 89 5 days ago
Support · by ramenos, 7 days ago
3 103 6 days ago
Support · by gravinator, 2 weeks ago
3 228 7 days ago
Support · by Roger Parkinson, 2 weeks ago
3 308 2 weeks ago