MinimServer Forum

Full Version: Browsing both values of a Boolean field
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 ?
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.
(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, 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.
Okay, thanks I can confirm this worked for me.
Reference URL's