Hi guys,
It’s the second day I’m on this and I can’t get it working. There is similar looking post here, but it is not filtering by Section, so it’s of no help to me.
Here’s the starting point: I’m pulling in all the articles from Section “tests” and it works fine:
{{ range where .Data.Pages "Section" "tests" }}
{{ .Render "tests-box" }}
{{ end }}
I want to sort them by their front-matters’ variable “idnumber” (which are in format “001”, “002” and so on) . I tried hacking the following (and all possible variations), but it does not work:
{{ (range where .Data.Pages "Section" "tests").GroupByParam "idnumber" }}
{{ .Render "tests-box" }}
{{ end }}
Please advise. Thank you.