Browsing both values of a Boolean field
|
20-05-2017, 11:42
Post: #1
|
|||
|
|||
Browsing both values of a Boolean field
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 ? |
|||
20-05-2017, 22:50
Post: #2
|
|||
|
|||
RE: Browsing both values of a Boolean field
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. |
|||
21-05-2017, 14:41
Post: #3
|
|||
|
|||
RE: Browsing both values of a Boolean field
(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. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)