Closed (fixed)
Project:
Facet API Collapsible
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2012 at 18:51 UTC
Updated:
23 Nov 2012 at 21:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
markhalliwellPatch attached.
Comment #2
markhalliwellJust to clarify, this patch is taking #1812994: Theme overrides do not work a step further and allows theming to remain completely hook-able (for other modules and themes). The only thing this module really should be doing is wrapping facet links with a custom div and appending a toggle span in the title of the facet.
Themes should still be able to implement their own hooks for facetapi theme functions (to construct their own titles, links, counts, etc).
Comment #3
attiks commentedNice work, one question:
why is facetapi_count removed?
Comment #4
markhalliwellBecause this module really shouldn't be theming the facets. The only other reason I left the others in is because markup needs to be injected or wrapped around those elements. I'm guessing the count theme hook got thrown in the code at some point to "pretty it up" by injecting the
<span/>wrapper so it could be aligned to the right; it also took out the parenthesis. In reality though, it's the theme that should be implementingTHEME_facetapi_countto inject markup or change the output however it's needed.Comment #5
attiks commented#4 True, thanks for the clarification.
Committed and removed the following as well
Comment #6
markhalliwellGood catch.