Closed (fixed)
Project:
Simple hierarchical select
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2013 at 01:09 UTC
Updated:
18 Jun 2016 at 20:48 UTC
Jump to comment: Most recent
Comments
Comment #1
ssoulless commentedHello the patch you attaced is not well applied, if you download the version 7.x-1.x from the control version tab in the module's page you will see that the patch is applying in a folder modules/shs it should be applied inside the shs folder otherwise you cannot a pply well the patch...
Comment #2
ssoulless commentedalso changing version to devel version
Comment #3
ssoulless commentedI have correct the patch but the patch is deprecated, does not work with the actual dev, in my test site my shs fields are shown as textfields...
Comment #4
ssoulless commentedClosing this as duplicate of https://drupal.org/node/1991490
Comment #5
stborchertThanks for your contribution, scrypter.
I've committed a slightly modified version of your patch.
Using the latest development version you can assign labels to any level within your hierarchy. Simply override
hook_shs_js_settings_alter()orhook_shs_FIELDNAME_js_settings_alter()and set the "labels"-property in the field settings.See
hook_shs_FIELDNAME_js_settings_alter()in shs.api.php for an example.Comment #8
NIKS_Artreaktor commentedI have an Bug
If i using api
hook_shs_js_settings_alter()
for field in Views Exposed filter - it working - adding Label
But if you choose child (second select) "- ALL - "
It reset Main (first select) choice of select to ALL
FIX of this
Add JS code