MinimServer Forum
Artist.displayFormat - alternative Felder? - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: Support (/forumdisplay.php?fid=4)
+--- Thread: Artist.displayFormat - alternative Felder? (/showthread.php?tid=5996)



Artist.displayFormat - alternative Felder? - MusikBaum - 06-01-2021 15:33

Is there a way to specify alternative fields in the displayformat? Example: 'Field1' is displayed if information is available, otherwise 'Field2' is displayed.


RE: Artist.displayFormat - alternative Felder? - Alandbush - 06-01-2021 16:33

(06-01-2021 15:33)MusikBaum Wrote:  Is there a way to specify alternative fields in the displayformat? Example: 'Field1' is displayed if information is available, otherwise 'Field2' is displayed.

You can but not directly. Smile

First, setup

tagValue property
Code:
Field3.default={Field1,Field2}

then setup

tagDisplay property
Code:
Artist.displayFormat={$Field3}

and setup either

indexTags or itemTags property
Code:
Field1,Field2,Field3

nb - the tag name you use instead of Field3 must not exist

For more detail refer to the User guide Tag Values section


RE: Artist.displayFormat - alternative Felder? - MusikBaum - 06-01-2021 19:35

(06-01-2021 16:33)Alandbush Wrote:  
(06-01-2021 15:33)MusikBaum Wrote:  Is there a way to specify alternative fields in the displayformat? Example: 'Field1' is displayed if information is available, otherwise 'Field2' is displayed.

You can but not directly. Smile

First, setup

tagValue property
Code:
Field3.default={Field1,Field2}

then setup

tagDisplay property
Code:
Artist.displayFormat={$Field3}

and setup either

indexTags or itemTags property
Code:
Field1,Field2,Field3

nb - the tag name you use instead of Field3 must not exist

For more detail refer to the User guide Tag Values section



RE: Artist.displayFormat - alternative Felder? - MusikBaum - 06-01-2021 19:36

Thank you very much. Good answer and good software