Posted by kaizerking on January 19, 2013 at 1:57pm
5 followers
| Project: | Simple hierarchical select |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Strycker |
| Status: | closed (fixed) |
Issue Summary
can we have option to save lineage? i don't know if it saving and only displaying deepest term
if it is saving then a display lineage option would be great
if not then we need this feature
1A->b>c and option to show top to bottom or bottom to top
ex: if we use it for country>state/region>city
2.We should be able to display it in city>state/region>country order almost all the sites need this
3.lineage terms display option either inline or one below the other with these option this would be a complete module
currently it shows only deepest term after saving.
| Attachment | Size |
|---|---|
| simplehs2.PNG | 1.86 KB |
Comments
#1
EDIT:the screen shot attached with my last post, , after saving the field, again when we edit we get the parent term None it means the lineage is not saved
#2
The selected term in the rightmost dropdown is saved. If you would like to display the hierarchy simply go to "Manage display" at your content type settings and select "Simple hierarchy" as format.
Other output formats are possible using Custom formatters or implementing hook_field_formatter_info() in a custom module.
Please provide more details on how to reproduce this (for example which version, the structure of your taxonomy, ...).
#3
I will try with custom formatters
My Structure is three level
SAP
- SAP R/3
-- SAP MM
-- SAP PS
After selecting the display "Simple hierarchy" i got this result, it shows only the lat two levels.
and the same field when we want to edit you get field as shown in the shs_edit_page
#4
I've updated the code.
Please test with the latest development version ("7.x-1.2+1-dev" should be available soon).
(btw.: thanks for testing!)
#5
Great!!!
Sorry for not mentioning the version in your last post. just overlooked.
i git clone or directly download snapshot from the git, So that I get the latest as you work on that and commit.
It is good now, Thanks for giving this module to the community,
As of now front end is working good
Needs to test the backend,, i.e how this works with views, rules, flag etc they are the modules currently i am using to put these terms in flow.
Thanks again for the great work
#6
Hi! i have tried both version ,latest dev from http://drupal.org/node/1892316 and latest dev from git clone..
but i still have the problem with the lineage...
look, i already have a lot of nodes created with the help of HS and save lineage option.
now, i want to use your module, but..
1. after simple change widget, the node edit form looks like

field cardinality is set to unlimited
2. after change cardinality to 1, only first term appears on node edit form.
any solution?
#7
Display of hierarchy works not as it should so setting this to fixed.
@kervi: please don't hijack this issue.
I don't know exactly how Hierarchical Select stores its data but it seems not to be compatible with Simple hierarchical select. Simply changing the field or widget type does not migrate the data. You have to create a script that transforms the data from HS to the correct format.
By changing the cardinality to 1 you deleted all the data of the additional items so only the first item is left.
Simple hierarchical select will not provide an upgrade path or a migration from Hierarchical Select so this is no issue of this module.
#8
#9
Hi!
Is it possible to implement saving lineage of chosen terms rather than saving deepest term, like now? It would be very usefull feature.
#10
No, Simple hierarchical select will not save the complete lineage. You can display the hierarchy using the provided formatter, but saving all items in the hierarchy is not (and will never be) the purpose of Simple hierarchical select.