Hi,
I have a taxonomy term with two levels. I want to allow users to add new terms. However, the new terms can be only allowed in the second level. I have been struggling trying to deal with this feature. At the end I only achieved this feature modifying the code of the shs.js
I have modified the line
if (settings.settings.create_new_terms) {
writting this code instead of
if ((settings.settings.create_new_terms)&&(parent_value != 0)) {
Is there any way to include this feature in next releases?
Thanks so much
Javier
Comments
Comment #1
henrijs.seso commentedI like this idea, but setting for this should be placed in
hook_field_widget_settings_form.Comment #2
henrijs.seso commentedAlso, quick css solution...
Comment #3
stborchertSorry for the late response but this won't work since usefully the site builder does not know how many levels the hierarchy may have (the number of levels is not fixed).