hippocms - Hippo CMS 7.9 Facets -
i'm trying implement facets , create catalog component.
my original approach use the: org.onehippo.cms7.essentials.components.essentialscontentcomponent
however doesn't seem it's available 7.9. next approach extend presentationlist component documentation isn't clear of creating values main , sub categories.
i use code component i'm not sure once again place category (values).
try { hstrequestcontext requestcontext = request.getrequestcontext(); hippobean scope = requestcontext.getsitecontentbasebean(); presentationpageablelistinfo info = getcomponentparametersinfo(request); landingpage presentationpage = null; string resolvedcontentpath = pathutils.normalizepath(requestcontext .getresolvedsitemapitem().getrelativecontentpath()); createandexecutesearch(request, info, scope, (basefilter) null, null, resolvedcontentpath); if (scope instanceof hippofolderbean) { presentationpage = getfirstlandingpageinfolder(request, (hippofolderbean) scope); } if (presentationpage != null) { request.setattribute("document", presentationpage); } if (request.getpathinfo().tolowercase().contains("facet/")) { request.setattribute("faceted", true); } } catch (exception e) { throw new hstcomponentexception("failed query presentations.", e); }
have tried these pages : http://www.onehippo.org/7_9/library/concepts/faceted-navigation/faceted-navigation-configuration.html http://www.onehippo.org/7_9/library/setup/hst-components/facets-component.html
Comments
Post a Comment