Skip to content
Discussion options

You must be logged in to vote

Solved.

  1. I'd forgotten to try the resolve: values option; as suggested by @pdehaan in this thread.
  2. It also turns out the csv-parse options I'm using mean each language is present as both object-keys and nested-values in the resulting JSON (my snippet in last message is wrong); which makes things easier.

Final Page:

---
layout: templates/base.njk
pagination:
  data: folder.my_Data_File
  size: 1
  alias: c
permalink: "example/{{pagination.data | slugify | replace('folder-', '') }}/{{ c.language }}.html"
---

Test output 1: {{ c.field1 }}<br/> {# Nice, short, and dynamic data-pointer (thanks to `pagination.alias`) #}
Test output 2: {{ c.field2 }}<br/>
Test output 3: {{ c.field3 }}<br/>

Act…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by johanolofolsson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant