Closed (fixed)
Project:
Facet API
Version:
7.x-1.x-dev
Component:
Code (functionality)
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2011 at 04:58 UTC
Updated:
3 Dec 2011 at 02:00 UTC
Just wondering if it is possible to generate individual facet links.
I have added taxonomy terms from a tags vocabulary to my search results.
I was hoping to be able to change the tag links so taht they are actually facets.
Is there a way I can generate a facet url given I have the term ID and all that?
I'm sure I can hack together something that works but just wondering if there is a proper way to do somthing like this.
Comments
Comment #1
nick_vhIt sure is but you will have to look at facetapi for that :)
Moving it accordingly
Comment #2
cpliakas commentedHi rooby.
The FacetapiAdapter::getSearchPath() and FacetapiAdapter::getQueryString() methods should give you enough to build the links.
Thanks,
Chris
Comment #3
rooby commentedThank you, that's great.
Comment #4
jyg commentedSorry for my lack of PHP OO expertise, but how can I instantiate the class necessary to run these functions?
Comment #5
cpliakas commentedNo OO expertise required! The facetapi_adapter_load() API function will return the instantiated object.