betz
#1
I need to make a list of content of ‘Type’ event, and sort byParam at the same time.
I have the following:
{{ range (and (where $.Site.RegularPages "Type" "event") ($.Site.RegularPages.ByParam "startdate"))}}
This worked for sorting, but this is also showing another content type ‘meeting’
How could this be achieved?
Cheers!
Tom
zwbetz
#2
An alternative way of doing it. See if this works:
{{ range .RegularPages.ByParam "startdate" }}
{{ if eq .Type "event" }}
...
{{ end }}
{{ end }}
betz
#3
I had to make it:
{{ range $.Site…RegularPages.ByParam “startdate” }}
{{ if eq .Type “event” }}
…
{{ end }}
{{ end }}
But then this works. thanks