Custom columns for width/height parts of Dimensions property

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
woofy31
Posts: 41
Joined: 24 Dec 2020 23:02

Custom columns for width/height parts of Dimensions property

Post 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!!

highend
Posts: 14662
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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

Post by highend »

Code: Select all

return gettoken(property("#image.dimensions", <cc_item>), 1, " x ");
and a 2 instead of 1 for the height value...
One of my scripts helped you out? Please donate via Paypal

woofy31
Posts: 41
Joined: 24 Dec 2020 23:02

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

Post by woofy31 »

Awesomeness, thank you so much!

Post Reply