Hi all,
I got a view with first column categorized, and documents can be in sub-categories.
Example :
doc 1 : category ‘A’
doc 2 : category ‘A\B’
When the show single category evaluates to ‘A’, documents 1 and 2 are displayed.
When the show single category evaluates to ‘A\B’, no documents are displayed.
Is it possible to show documents froms sub-categories ? I think I could do it displaying documents from the ‘A\B’ category under the ‘A’ category and the ‘A#B’ category (so the view has only 1 level of category and documents are displyed several times), but this solution isn’t the best one I think.
Any advice ?
Thanks by advance
Damien
Subject: Using sub-categories - is this what you’re after?
Not sure if this is what you’re after, but I recently added a ‘show single category’ view that encompassed two categories. The actual data is people and activities during the four quarters of the year. I wanted to see one person and just one selected quarter at a time. So I created a view that was categorised on the person’s name concatenated with the quarter. The categories in the view look like this:
Darren AdamsQ1
Darren AdamsQ2
Darren AdamsQ3 and so on
I embedded this view into a form, and used two fields to select a) the person and b) the quarter. These two fields feed a calculated field which in turn feeds the single category view. I found that it worked best with radio buttons / combo-boxes that refreshed the form on a keyword change.
Subject: RE: Using sub-categories - is this what you’re after?
Thank you Daren for your reply !
I was looking at a way of ‘show single category’ using a view like this :
CategA
doc 1
CategB
doc 2
>CategC
doc 3
When Show single category evaluate to CategA, I want to see the 3 docs.
When evaluate to CategA\CategB, I want to see doc 2 and 3.
When evaluate to CategA\CategB\CategC, I want to see only doc 3.
But using the '' char to separate category levels don’t works.
I think your solution (representing my 3 levels as string combinations at the first level) is the lone possible.
Thank you again
Damien
Subject: ‘Show Single Category’ : can use subcategories ?
When you pass ‘A\B’ what does the Query_String show?
Subject: RE: ‘Show Single Category’ : can use subcategories ?
Hello,I use @URLEncode to pass the category in the query string and @URLDecode in the ‘show single category’ formula
Any idea ?
Subject: RE: ‘Show Single Category’ : can use subcategories ?
I was thinking that maybe the "" was getting translated to something else but if you’re using encode/decode that’s probably not the case. Have you tried hardcoding “A\B” in the SSC event as an experiment? I wondering if there needs to be an extra backslash so it will correctly see B as a subcategory.