Active
Project:
Facet API Bonus
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2014 at 14:32 UTC
Updated:
4 Feb 2016 at 15:57 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
marcoka commentedok i had an idea to first alter the settings form and add a textfield. then use block view alter to insert this text. i will try this. any better ideas?
Comment #2
kopeboyI need this feature too. Any suggestions on how to show a description / help text on a facet block?
Comment #3
marcoka commentedi tried something and wrote a small module. you can try it. it worked when i did my tests.
maybe you or someone else can use this as a starting point.
Comment #4
kopeboyThank you marcoka.
Upon installation I get this error:
Notice: Undefined index: html_text in facet_api_custom_text_block_view_alter() (linea 45 di /srv/bindings/8036422060ee456b87e0ee13c0f08bad/code/sites/all/modules/facet_api_custom_text/facet_api_custom_text.module).Apart from that it works, but I think you could make a slight improvement. The problem is the text/html gets styled as a list item, this is the html when adding a simple text with a WYSIWYG editor:
Then there is another list div generated by the Facet module with the actual facets.
Comment #5
marcoka commentedyes its far from perfect and was just some kidn of experiment. i t needs work. feel free to post updated versions and patches. maybe it will find its way into a custom project or into facetapi bonus module.
Comment #6
danon1981 commentedThis is a very welcome little feature. Actually I'm surprised something like did not already exist. I installed the module and it works but I get errors.
Notice: Trying to get property of non-object in facet_api_custom_text_block_view_alter() line 46 ofI haven't been able to find how to solve this, does someone have a solution?
Comment #7
danon1981 commentedI figured it had to do with the items that did not have any value so added a condition before defining $custom_text.
Going to work on it some more to fit my use case, I might post an updated version. I believe this should be part of facet filtering.
marcoka thanks for this little module!!
Comment #8
marcoka commentedi move that to the facet api bonus issue queue. i think that is the right place.
Comment #9
marcoka commentedComment #10
marcoka commenteddanon is right the code should test that case. i also added a switch that will hide the block completely when you use this: #2089929: Filter plugin to hide already active facets
otherwise the block would be shown with no facets but the custom text.