Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Modular page ordering

Started by Muut Archive 10 years ago · 1 replies · 315 views
10 years ago

Hi all. I have a problem with ordering module on my page. I have a modulars on category page.How to correctly order modular pages by taxonomy or some other another mark? Please help
I have the folowing code in category.md

YAML
title: Carts
menu: Carts
subtitle: Super Lightweight Carts
description: 'some description'
content:
    items:
      '@taxonomy.category': carts
    order:
        by: folder
        dir: asc
10 years ago

If you are talking about modular pages specifically you can simply use:

YAML
content:
    items: @self.modular
    order:
        by: default
        dir: asc

if you wish to use taxonomy then your approach should work too.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1362 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1124 9 years ago