I have a view that outputs search api results from several sources.
One of these are some media types.
I wish to conditionally rewrite the result depending on the media type.
Specifically, I have both Files and a custom type called remote_urls.
I use the
name field as the heading and want to re-write the result so I if it is a file it gets rewritten as a link to the file and if it is a remote_url it gets rewritten as a remote url.
how would I do this?