MinimServer Forum
Conditional tagFormat? - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Conditional tagFormat? (/showthread.php?tid=2991)



Conditional tagFormat? - Mike48 - 23-03-2016 03:39

Hello

I include information about supporting artists in a "People" tag. In MinimServer configuration I have, in the tagFormat field:

Artist.displayFormat={$artist$orchestra$people}

Is there any way I can specify that if the $people tag has a value, the $artist tag should be omitted from this?

Thanks!
Mike


RE: Conditional tagFormat? - simoncn - 23-03-2016 10:59

(23-03-2016 03:39)Mike48 Wrote:  Hello

I include information about supporting artists in a "People" tag. In MinimServer configuration I have, in the tagFormat field:

Artist.displayFormat={$artist$orchestra$people}

Is there any way I can specify that if the $people tag has a value, the $artist tag should be omitted from this?

Thanks!
Mike

You can do something similar to this by using the 'default' option of the tagValue property (see this section). You would need to define a new tag name (for example, PeopleArtist) and add it to itemTags. You would also need to add

PeopleArtist.default={People, Artist}

to the tagValue property and you would need to change Artist.displayFormat to:

Artist.displayFormat={$peopleartist$orchestra}

This would show the information that you want but not in exactly the same order.