![]() |
|
Browsing both values of a Boolean field - Printable Version +- MinimServer Forum (https://forum.minimserver.com) +-- Forum: MinimServer (/forumdisplay.php?fid=1) +--- Forum: Music Tagging (/forumdisplay.php?fid=9) +--- Thread: Browsing both values of a Boolean field (/showthread.php?tid=4039) |
Browsing both values of a Boolean field - paultaylor - 20-05-2017 11:42 So SongKong has an IS_CLASSICAL field that is set to 1 or 0. If I just add to indexTags the value is_classical:IsClassical then user can click on this and it presents a 0 and 1 folder so they can view nonClassical/Classical releases but is ugly viewing the zero and one folder So I do is_classical=1:IsClassical so you can directly browse classical without the intermediate step. But I want to be able to browse non classical but if I do is_classical=1:IsClassical, is_classical=0:IsNonClassical it fails with 'duplicate index tagname 'is classical' Is there a way round this ? RE: Browsing both values of a Boolean field - simoncn - 20-05-2017 22:50 For now, you can work around this restriction by "copying" the is_classical tag to some other tag name such as is_classical_copy. To do this, add is_classical_copy.default={is_classical} to tagValue and also add is_classical_copy=0:IsNonClassical to indexTags. In a future version of MinimServer, I am hoping to provide a better way to do this kind of thing. RE: Browsing both values of a Boolean field - paultaylor - 21-05-2017 14:41 (20-05-2017 22:50)simoncn Wrote: For now, you can work around this restriction by "copying" the is_classical tag to some other tag name such as is_classical_copy. To do this, addOkay, thanks I can confirm this worked for me. |