Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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 ?
Visit this user's website Find all posts by this user
Quote this message in a reply
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.
Find all posts by this user
Quote this message in a reply
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, 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.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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