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.

Content & Markdown

prevSibling and nextSibling not working in blog with moved posts

Started by Dieter Tremel 8 years ago · 0 replies · 613 views
8 years ago

Starting with grav-skeleton-blog-site I moved the blog from the home page to another page to have it visible only inside a member area. Homepage is similar to the one-page skeleton.

This works, but the previous and next buttons from blog-item.html.twig always point to the blog item itself, not to the siblings. A pageing inside the post is not possible. What did I make wrong, how can I fix this? What is the purpose of the blog_url: /mitglieder setting in blog.md and in item.md?

My configuration:

YAML
ls pages/05.mitglieder/
01.personalverwaltung  02.download  blog.de.md  glass-2006766_1920.jpg  posts

pages/05.mitglieder/blog.de.md:
blog_url: /mitglieder
...
content:
    items:
        -
            '@page.children': /mitglieder/posts
    limit: 6
    order:
        by: date
        dir: desc
    pagination: true
    url_taxonomy_filters: true

Suggested topics

Topic Participants Replies Views Activity
Content & Markdown · by Jochen, 8 months ago
6 100 8 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 187 1 year ago
Content & Markdown · by Jan L'Am, 1 year ago
4 148 1 year ago
Content & Markdown · by Leonardo, 1 year ago
3 63 1 year ago
Content & Markdown · by belthasar, 1 year ago
4 259 1 year ago