Quantcast
Channel: How to sort on inner field?
Browsing latest articles
Browse All 7 View Live

How to sort on inner field?

@Xeenych wrote: This is in somefile.md and many other files.md --- properties: ogc_fid: 4 name: some_name num: 7 --- I want to sort pages by ogc_fid And this is in layout. {{ range sort .Data.Pages...

View Article



Image may be NSFW.
Clik here to view.

How to sort on inner field?

@zwbetz wrote: This should work fine as you have it {{ range sort .Data.Pages ".Params.properties.ogc_fid" }} Xeenych: at <sort .Data.Pag es ".P…>: error calling sort: can’t evaluate an invalid...

View Article

Image may be NSFW.
Clik here to view.

How to sort on inner field?

@Xeenych wrote: zwbetz: This error is likely because one of your pages doesn’t have a value for ogc_fid No it is not. Every page has ogc_fid Read full topic

View Article

How to sort on inner field?

@zwbetz wrote: Would need to see your code to help anymore. Else I’m just shooting in the dark Read full topic

View Article

How to sort on inner field?

@Xeenych wrote: You were right. Pags without ogc_fid break everything The workaround is {{$tmp := where .Pages ".Params.properties" "!=" nil}} {{ range sort $tmp ".Params.properties.ogc_fid"}} Read...

View Article


How to sort on inner field?

@mojoa wrote: Thanks for helping people! Read full topic

View Article

How to sort on inner field?

@maiki wrote: Next time, please follow the advice at Requesting Help and share your project. if you can not, please recreate a project that reproduces your issue that can be easily shared. Read full...

View Article
Browsing latest articles
Browse All 7 View Live




Latest Images