The descriptor seems to suggest this macro will produce a list of checkboxes so users can select multiple categories.
Does anyone have an example of how this fits into the .ftl template - I've been struggling for hours.
No problem displaying facet and categories in the normal way - but I can't get this to work at all.
Maybe it's a lot more complicated than this and I'm missing something obvious but I'm trying this:
<@fb.MultiCategories facet="section"/>
I'm getting this error: Expected hash. facet evaluated instead to freemarker.template.SimpleScalar on line 408, column 12 in web/templates/modernui/funnelback.ftl.
And it returns the name of the fact as expected - so I know the @fb. stuff is there and is working.
From what I can gather from the rest of the documentation - I should just be able to pass into the Multicategories macro the name of the facet as a variable - and it should then almost cascade down to the other macros - the top macro generating the variables and calling the next macros and so on.
So something like this should do something?
<@s.FacetedSearch>
<@fb.MultiFacet name="section">
<h2>Test FACETS CODE</h2>${fb.facet}
<@fb.MultiCategories facet="section"/>
</@fb.MultiFacet>
</@s.FacetedSearch>
But again I just end up with the same error.
Expected hash. facet evaluated instead to freemarker.template.SimpleScalar on line 408, column 12 in web/templates/modernui/funnelback.ftl.
It looks like I should be passing through the variable in a different format?
I am using a GScope facet - could this be an issue?
As I'm really using gscopes - I added my own checkboxes and a bit of javascript to combine the checkbox values into one variable, append the correct polish expression at the end and submit this through a hidden field.
Works fine for now.
Would be nice if the documentation on the MultiCategories tags contained an explanation of how they are used in practice - maybe a demo block to add to the simple.ftl or something.
I never quite worked out if I was entering the right variables in the right order or the right tags in the right order.
After 3 days of stumbling in the dark I'd had enough :)