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.

Archive

@taxonomy.tag: foo ( is this already implemented ? )

Started by Muut Archive 12 years ago · 6 replies · 318 views
12 years ago

Not getting any itens with this.
Taxonomy works fine if used on template but not on the .md header

content:
items: @taxonomy.tag: foo

12 years ago

Did you define the taxonomy you are trying to use in your site.yaml? It should be defined in the list of taxonomies:

12 years ago

I have downloaded the fresh install of the grab-blog example. where all taxonomies are working fine.

I only edited the blog.md in pages and changed the line 10 from :

content:
items: @self.children

to

content:
items: @taxonomy.tag: photography

In my understanding it should show me some results, but nothing ...

also tried

content:
items: @taxonomy.tag: [architecture, photography]

12 years ago

Hmm that should work. We will look into it. Thanks

12 years ago

You need to obey the YAML rules (remove dots and you will get an idea):

content:
. . items:
. . . . @taxonomy.category: blog

12 years ago

That is it Matias , thanks. Is actually very logical, but would be good to fix it on the documentation because there is all in the same line ...

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1279 9 years ago
Archive · by Muut Archive, 9 years ago
2 886 9 years ago
Archive · by Muut Archive, 9 years ago
2 4015 9 years ago
Archive · by Muut Archive, 9 years ago
1 2891 9 years ago
Archive · by Muut Archive, 9 years ago
3 1075 9 years ago