Page 1 of 1

Custom columns for width/height parts of Dimensions property

Posted: 24 Apr 2023 13:02
by woofy31
Hey!

So there is a "Dimensions" special property that I can show a custom column for, but it currently shows both width & height of a picture and sorting by that column is a bit weird for what I need.

I was interested in sorting by either width or height of a picture, but I have no idea how to create 2 custom columns for those individual dimensions of that special Dimensions property and be able to sort by one or the other, not the combination of both.

Any helpful ideas? Thanks!!

Re: Custom columns for width/height parts of Dimensions property

Posted: 24 Apr 2023 13:19
by highend

Code: Select all

return gettoken(property("#image.dimensions", <cc_item>), 1, " x ");
and a 2 instead of 1 for the height value...

Re: Custom columns for width/height parts of Dimensions property

Posted: 24 Apr 2023 13:21
by woofy31
Awesomeness, thank you so much!