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.

General

Displaying Page List Across The Top

Started by David Colburn 2 years ago · 7 replies · 306 views
2 years ago

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?

TXT
/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
last edited 01/22/24 by David Colburn
2 years ago

@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.

2 years ago

OK, I removed that part - it's not necessary at this point.

The solution for my original question remains unclear to me.

👍 1
2 years ago

@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 .

2 years ago

@nginxgrav:
all of my pages are under /02.resources (instead of /02.blog) rather than each with a numbered prefix of its own

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.

2 years ago

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!
image|607x253

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 99 16 hours ago
General · by pamtbaau, 21 hours ago
1 63 21 hours ago
General · by Andy Miller, 1 day ago
0 48 1 day ago
General · by Marcel, 12 months ago
6 357 5 days ago
General · by Duc , 6 days ago
3 45 6 days ago