One personalized column for two types of files; MP4 and JPG ?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
chiara.codagnone
Junior Member
Junior Member
Posts: 12
Joined: 2023-01-29, 03:38 UTC

One personalized column for two types of files; MP4 and JPG ?

Post by *chiara.codagnone »

I'm using personalized columns for photos and videos.
I wanted to add a column with date acquisition for jpg, and Date media created for videos.

So i'm wondering if it possible to write a column rule like " If file extension is jpg, show [=shelldetails.dateacquired] else if file extension is mp4 show [=shelldetails.datemediacreated]


Actually the best solution I have found is: [=shelldetails.DateMediaCreated][=shelldetails.DateAcquired]
Since a media file can't have both fields at the same time, my column works properly, showing me the first field for .mp4 and the second field for .jpg

The problem is that sorting files by date with this kind of column:
it sorts just .mp4 files if i put .mp4 field before [=shelldetails.DateMediaCreated][=shelldetails.DateAcquired]
or it sorts just .jpg files if i put jpg field before [=shelldetails.DateAcquired][=shelldetails.DateMediaCreated]

How can i fix it?
Fla$her
Power Member
Power Member
Posts: 2297
Joined: 2020-01-18, 04:03 UTC

Re: One personalized column for two types of files; MP4 and JPG ?

Post by *Fla$her »

Try to figure out super_wdx.
Overquoting is evil! 👎
Post Reply