Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

Link to renamed modular "sub"page doesnt work

Started by John 7 years ago · 2 replies · 663 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 webmasterodp, 2 weeks ago
4 244 2 weeks ago
Support · by nwhitfield, 2 weeks ago
2 211 2 weeks ago
Support · by stell, 4 weeks ago
5 457 3 weeks ago
Support · by gravinator, 2 months ago
5 636 3 weeks ago
Support · by Gravver, 1 month ago
6 429 4 weeks ago