Post Reply 
Conditional tagFormat?
23-03-2016, 03:39
Post: #1
Question Conditional tagFormat?
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

Mike
Portland, Oregon, USA
Find all posts by this user
Quote this message in a reply
23-03-2016, 10:59 (This post was last modified: 23-03-2016 11:00 by simoncn.)
Post: #2
RE: Conditional tagFormat?
(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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)