grav-plugin-directorylisting icon indicating copy to clipboard operation
grav-plugin-directorylisting copied to clipboard

The default route to start creating the structure

Open petira opened this issue 3 years ago • 0 comments

I miss the ability to set the default route where the plugin should start creating the structure via:

directorylisting.yaml

route: /blog

or via the page Frontmatter:

directorylisting:
  route: /blog

I can make settings via the Twig function, but it is not very comfortable:

{% set settings = {
    'route': '/blog'
} %}

{{ directorylisting(settings)|raw }}

Even with this solution, however, I did not come across the possibility of traversing the entire structure, starting with <root>, e.g. to create the Sitemap.

Setting:

{% set settings = {
    'route': '/'
} %}

returns the Home page (and children pages).

petira avatar Jun 14 '21 12:06 petira