* Media Type

Questions about using and managing media in FH
Post Reply
avatar
Little.auk
Famous
Posts: 249
Joined: 23 Jul 2021 08:51
Family Historian: V7
Location: Tamworth, Staffordshire, UK

Media Type

Post by Little.auk »

I have searched the forum, but can't find much relating to Media "Types".

In the Media Records Window one of the fields that can be displayed is "Type" as per the screen clip below.

There appears to be no option for displaying this in the Media property box, nor can I find any way of editing it, although I can display it in queries using "=MediaType(%OBJE%)".

Most of my media files are jpeg or png images - which all have the Type "Picture", but I have one or two pdf files - listed as "Document".

What is the purpose of this field?

image.png
image.png (115 KiB) Viewed 640 times
Peter Rollin
Running FH 7.0.22 and AS 7.8.6 64 bit in Windows 11
User avatar
ColeValleyGirl
Megastar
Posts: 5520
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Media Type

Post by ColeValleyGirl »

If you go to configure columns for that record window, you'll see it is displayed using

Code: Select all

=MediaType()
.

It indicates what programme will open the media item, based on its file extension. (The actual programme depends on the defaults you've set up on your PC).

Because it's referencing a function, you can't edit it (other than by changing the file extension) and you can't customise the property box to display it.
User avatar
tatewise
Megastar
Posts: 28488
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Media Type

Post by tatewise »

Although you cannot display the Media Type in the Property Box tabs you can add it to the Caption at the top.
Use Tools > Preferences > Property Box and click the Captions... button.
In the Media Object: box insert Type: =MediaType() and OK out.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Post Reply