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

Page edit problems

Solved by pamtbaau View solution

Started by Shane 1 year ago · 27 replies · 306 views
1 year ago

I presume you mean?:

TXT
01.Genesis/
  001.Capitulo-1/    <-- Note the dot instead of dash
     docs.md
  002.Captiulo-2/    <-- Note the dot instead of dash
    docs.md
02.Exodo/
  etc.

Please be precise in your wordings and snippets!

@shane:
But I can’t figure out how to get Grav to recognize that structure.

You won't be able to... That's the philosophy of Grav: folder/file.md. The foldername defines the slug/url.

1 year ago

@pamtbaau:
I presume you mean?:

TXT
01.Genesis/
  001.Capitulo-1/    <-- Note the dot instead of dash
     docs.md
  002.Captiulo-2/    <-- Note the dot instead of dash
    docs.md
02.Exodo/
  etc.

Please be precise in your wordings and snippets!

Sorry about that, I did type it out, and you are correct it is the dot, not the dash.

@pamtbaau:
You won’t be able to… That’s the philosophy of Grav: folder/file.md. The foldername defines the slug/url.

Good to know, I will quit trying.

1 year ago

Next....

  • Generate a single page
  • Test
  • Generate 10 pages
  • Test
  • Generate 100 pages
  • Test
  • 500, 1000, etc.
1 year ago

Ok, it has to do with my folder names!
001.Genesis this folder is fine
inside that folder 001.Capitulo-1 is not fine. Changing that to capitulo-1 is fine, or name-1 is fine, but the number sequence inside the already numbered folder messes up Grav. That should be easy to fix. @pamtbaau Thank you so much for sticking with me and helping me. Troubleshooting is not my strong suit... but you already figured that out.

last edited 03/08/25 by Shane
1 year ago Solution

@shane, I recall having read something about triple leading digits causing issues and that it had been fixed, but this thread didn't ring a bell.

I just looked up the repo of Admin and there appears to be an old issue with a similar behaviour. I added a comment: https://github.com/getgrav/grav-plugin-admin/issues/2257

Ah, here is the other 3 digit issue I recall and has been fixed: https://github.com/getgrav/grav-plugin-admin/issues/1151. Because I knew about this issue I thought 001.folder/default.md should be no problem. Unfortunately it is...

👍 1
1 year ago

I have had this problem for a couple of years, but as mentioned, I don't edit much, and have just made any edits needed in text editor, not in the GUI. But it has kept me from using or recommending Grav for anything else.

1 year ago

I just realized if I remove the triple digits the pages no longer display in the menu on the left hand side. 😦 that is not good. Unless I add the visible: true to the frontmatter of the page. So that is disappointing.

There is one folder where triple digits are necessary.

1 year ago

This is by design. According the docs: https://learn.getgrav.org/17/content/headers#visible

By default, a page is visible in the navigation if the surrounding folder has a numerical prefix, i.e. /01.home is visible, while /error is not visible . This behavior can be overwritten by setting the visible variable in the header. Valid values are true or false .

Please stay on topic in a post. This is no longer related to "Page edit problems".

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 64 17 hours ago
Support · by Anna, 3 days ago
2 68 20 hours ago
Support · by Justin Young, 21 hours ago
1 35 21 hours ago
Support · by Duc , 1 week ago
2 71 6 days ago
Support · by Colin Hume, 1 week ago
2 63 6 days ago