I am trying to extend the example Oscars application
outlined in the application builder documentation 
https://docs.marklogic.com/guide/app-builder.pdf.
What I would like to do is to show the year facet nested under the decade facet,
so you can expand each decade to select a given year or select theentire
decade at once.  >Decade 1950  <-expanded      >1950      >1951      
.....>Decade 1960>Decade 1970>Decade 1980 In an earlier thread 
http://developer.marklogic.com/pipermail/general/2013-February/012306.html
an
example was given of how to hide the year facet until the decade facet is 
selected.  After reading this thread my first thought was to follow theexample 
of hiding the decade facet after it is selected and then displayingthe year 
facet. I would then add some code to change the label of the year facet to 
match the selected decade.  While this might work for this simple example once 
the nesting is more than two levels deep it would be confusing to the user. 
This simple solution would also not allow for two decades to be expanded at the 
same time. It seems this is a common task, is there some build in functionality 
of the sidebar that can nest facets? Is there a better way to nest facets than 
my clumsy workaround? 


Thanks,


Allen


                                          
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to