Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Link to renamed modular "sub"page doesnt work

Started by John 8 years ago · 2 replies · 759 views
8 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.

8 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

8 years ago

I did all of that, it still didint work.

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 days ago
2 85 28 seconds ago
Support · by TomW, 2 days ago
1 59 2 days ago
Support · by TomW, 6 days ago
6 138 3 days ago
Support · by Anna, 2 weeks ago
2 168 6 days ago
Support · by Anna, 4 weeks ago
1 337 4 weeks ago