As you may observe - Grav is putting all of my page titles across the top of every page … and they run off the right edge … https://sun2save.com/cms/
I’ve created a neater list of them here: https://sun2save.com/cms/mypage
How do I get rid of all but the mypage/home and current page headers, please?
Thanks!
@nginxgrav,
Please take some time to read the docs about the very basic concepts of Grav:
I will definitely have to read those doc-pages several times before the many details to begin to stick. Thanks for the links!
I didn’t notice anything that explains why all of the links to the other pages are automatically displayed at the top of every page (and why they don’t auto-wrap), nor how to specify that only “home” (the /mypage menu) should be displayed.
OK, wait … /user/pages doesn’t show up in the GUI Menu interface but I see it in cpanel at bluehost. (It probably should be visible in grav.) Anyhow, should I be structuring things so that all of my pages are under /02.resources (instead of /02.blog) rather than each with a numbered prefix of its own?
/user
└── /pages
├── /01.home
│ ├── /_header
│ ├── /_features
│ ├── /_body
├── /02.blog
│ ├── /blog-item-1
│ ├── /blog-item-2
│ ├── /blog-item-3
│ ├── /blog-item-4
│ └── /blog-item-5
├── /03.about-us
└── /error
@nginxgrav, Please do not add multiple questions to a single post. A post can be marked as solved only once for a topic. Nested topics wil get buried and lost for people searching for a similar question.
Create a new topic with a descriptive title for your conceptual question about “local resources”. Thanks.
OK, I removed that part - it’s not necessary at this point.
The solution for my original question remains unclear to me.
1 Like
@nginxgrav, What’s unclear about:
-
Chapter 2. Pages: Folders , last paragraph,
If no number is provided as a prefix of the folder name, the page is considered to be invisible , and will not show up in the navigation. An example of this would be the error
page in the above folder-structure.
This can actually be overridden in the page itself by setting the visible parameter in the headers.
-
Chapter 2. Pages: Header/Frontmatter , section 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
.
So, the answer is Yes to my suggested solution “all of my pages are under /02.resources (instead of /02.blog) rather than each with a numbered prefix of its own”. Cool.
I’m thinking, after reading a bunch of doc pages, that this is what things should look like … a parent page and the rest child pages. (I just changed the “parent” for two of the 20+ existing pages, so far.) Am I correct, please? Thanks!
