Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Link to renamed modular "sub"page doesnt work

Started by John 7 years ago · 2 replies · 304 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 Thomas, 1 week ago
2 53 9 hours ago
Support · by Anna, 3 days ago
2 59 12 hours ago
Support · by Justin Young, 13 hours ago
1 30 13 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago