i added number-fields like “height”, “weight” and “format” to a custom blueprint. now i am trying to get the average, min- and max-value from some of these fields for several templates. my problem is, that i simply do not know how to access that data in kirby to put it in an array.
this is stupid, im sorry. but thanks for your time!
daniel
i had to add $split = all, which was more of a guessing game. isn’t there a better instruction?
i still do not know what this is doing, nor what $unique = xyz does.
If the pages of your collection have the same value stored in the given field, the array returned by pluck() contains the same value several times. By setting $unique to TRUE each value will only appear once.