Port Hierarchical Select to Drupal 6
Roxpace - March 10, 2008 - 13:08
| Project: | Hierarchical Select |
| Version: | 6.x-3.x-dev |
| Component: | Code - Content Taxonomy |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Are there no plans to upgrade this to Drupal 6.1 / 6.0 ?
I know Views is not yet released, but there are an alpha release of it and it would be wonderful to see it closing Drupal 6.x path.
Sincerely
Roberth Andersson
Administrator/Developer @ Jump-Gate and Webworqs, Inc
Personal page: http://www.roberth.se and Jump-Gate Projects site: http://www.jump-gate.com

#1
There will be, when I find the time, and it'll definitely be *after* my exams. Patches or sponsoring are welcome of course, and will make D6 support come faster.
#2
#3
#4
This module is the best thing since sliced bread. I wish it was in core.
It's times like these where I wish I had some coding expertise, because Hierarchical Select is the one module I absolutely need for Drupal 6.
Even more unfortunate is that for Drupal there is no Taxonomy Super Select, Form Tweaker, CCK Taxonomy, etc. solution. Applying terms to content types is a crazy bad experience in Drupal 6, at least for what I am developing.
Is paying to get a D6 release the best way to move this project to the fast track? Or is it more the lack of developer time in general?
If payment could fast-track Hierarchical Select for Drupal 6... in terms of sponsoring a D6 version, what kind of money do projects like this cost?
#5
First of all, thank you for the compliments! :)
At the moment, it's lack of developer time. I still have several features to implement in version 3 (for Drupal 5). After there's a 3.x final release, I'll work on the D6 port.
A D6 port will *not* require a complete rewrite. It will allow me to strip several tricky parts of the code, and force me to make some changes (e.g. hook_menu() changed a lot, and virtually all Forms API hooks have changes in their parameters).
What is your timeframe?
#6
It is looking more and more like I'll be developing with 5.7. I have 2 tracks at the moment - 6.2 and 5.7, and there's just no way I can justify the 4-6 week increase in dev time to get a usable 6.2 version of my project.
So my timeframe might be an N/A as far as Hierarchical Select is concerned, for the 5.x verion of your module works well for me. It's such a useful module.
#7
Very well! :) The reason I'm developing version 3 for Drupal 5 instead of Drupal 6 is the same reason you implicitly mentioned here: Drupal 5 is still used by a lot of companies. And it will be for several more months. So it still makes sense to write big updates for 5.x modules.
#8
HS3 sounds great!
I disagree with your last point, "it still makes sense to write big updates for 5.x modules". It makes much more sense to me to "wrap up" the working 5.x versions, port to 6.x, and then perform the next major version release on 6.x. Continued major development on old platforms encourages and convinces Drupal users to ignore the current product in favor of an older platform. That can't be a good thing. If Drupal 5.x contributions continue to grow, Drupal 6.x production sites will continue to lag. There's literally momentum being sucked from 6.x and reinvested into 5.x, and in some contributions' cases this seems to be accelerating.
#9
Personally, I agree with you. However, not everybody (including some of my clients) can upgrade in the next, say 8 months or so, because they're still developing *big* sites on D5. So it really does make sense.
#10
I agree that it makes sense on a micro level.
An FYI regarding my statement in #4 above...
A 6.x dev version of Content Taxonomy was released a few days ago, so there is at least a little more flexibility in the assigning of vocabulary terms by using radio buttons, check boxes, trees, etc. It's no Hierarchical Select by any means, but it can be friendlier than the standard select box on 6.x. I'm currently trying it out.
#11
Hi Leers...Its a great module and i am sad i cant really release my site in D6 without Hierarchial Select...there are a lot terms in multiple vocabs which without this module will drive away any user after they try to narrow in on the right one...lets hope for a release soon!
Any help in testing the 6.x version count on me.
#12
subscribe
#13
I've been keeping watch on your CVS messages for v.3, and it's exciting to see all you've done. Kudos to you!!!
To update a post above, I've since committed on 6.x for my project, so I won't be reaping the fruits of your labor quite yet. I've decided to count on Hierarchical Select being available in the future, and I am developing with that assumption. It's that valuable a module.
I can handle the minor issues with Views 2, and I can deal with the manual workarounds for making my own panels. But Hierarchical Select - like the Drupal Admin Menu - it's just painful working without it once you've had a taste. And unlike the admin menu, this one extends outstanding functionality and usability to admins and users alike.
Applause for your active development. I'm sure v.3 will be great. Hopefully the eventual port to 6.x will be somewhat smooth.
#14
I'm pretty certain that porting will be smooth. While I don't know all the details of D6, I'm aware of almost all changes, and I did the development of HS 3 with "D6 portability" in mind. :)
That said, time is, and will be scarse till the end of June. So I really can't make promises. Worst case scenario: first week of July. Bad case scenario: 3rd-4th week of June. Hoped case: 2-3 weeks from now. Best case: 2 weeks from now.
It's a weird feeling that somebody is actually tracking your CVS commits :P But it also gives you a feeling of appreciation, so thanks for that :)
#15
come on leers ...put an end to this wait for D6 sake...really praying u get enuf time to release the module as what u said in the "hoped case scenario"...july will be quite long a wait...will surely be a great module for future D6 users...
I would also like to ask you sincerely when do you think(frm ur experience with Drupal) D6 will be usable with important modules like Hierarchial Selcect and other cool ones...and is there a way Drupal association can hasten dev of the modules used by more drupal based developers.
Thankyou
#16
Copy/pasted from somebody who e-mailed me with the same question:
As you can see, there simply is no way for me to spend any time on it, since literally *all* my time is already being consumed.
#17
Kick butt on the school stuff, Wim. I trust that you'll be back around when time permits.
So many other module maintainers/developers seem to disappear without so much as a brief explanation, so I appreciate the updates.
#18
I'm looking forward to v3 for Drupal 5. I disagree with the other comments about ignoring D5. D6 wont be ready to use for more complex sites for at least a few months because Views and CCK aren't even ready.
#19
I'm using Views and CCK versions for 6.x, and they are working pretty darn well. Obviously, we'd all like official releases, but for the basics I've come accustomed to in 5.x, the current dev/beta versions are doing the trick.
#20
It seems Wim has got enough work to do apart frm his exams.Still he is updating 5x dev .Kudos to his spirit.Lets give him his time and wait for the best.
#21
Yes, I'm still in my exam period, but I've got some time now. I worked on HS yesterday and will do so today. With some luck, I might get out a beta for the 5.x version.
As I said in this issue before: as soon as version 3 for Drupal 5 is stable, I'll port it to Drupal 6. And that will probably be less than a day of work. But if I'd be working on the Drupal 5 and 6 versions simultaneously, I'd have to keep fixes in sync, thus doubling the amount of work!
I think it's pretty likely now that you'll have a 6.x alpha on the 5th of July at the latest. (The Drupal 5 version is making excellent progress, lots of issues, but almost all of them small ones.)
#22
All the best for 5.x-3 ,Wim!
If the 6x version comes out on July 5th...i will shift to D6 ....i really love D6.Sincerely hope to see it happening on 5th.
Also is there a way to display the taxonomy terms as links for the user to click on in the 6.x version....i mean some functionality like http://drupal.org/project/archive_by_terms .or
http://drupal.org/project/taxonomy_vtn
#23
nirvana4ever: nope, that's for *displaying* hierarchies, HS is for *selecting* item(s) in hierarchies. Links don't make sense, especially because it would become WAY too big if you've got huge taxonomies (in the range of 10,000 or more).
#24
ok.but are there sites running on 10,000 taxonomies?thts huge!
#25
Not 10,000 taxonomy, 10,000 terms in a single vocabulary. I've heard of ones with +- 50,000 as well.
#26
thts really big a no...i have around 60 terms in one vocab and had thought it was quite big ...but it appears to be nothing much!
#27
subscribing:)
#28
Hi Wim...is the work happenin as fast as intended ...is the gift on the way for 5th?
And ,wanna ask u whether we can use HS 6x for enabling users to select Country-->state or even Country-->state-->city in their profiles ?
Most of the webmasters will like to know the nationalities of the users and users of other users.So if this function can be inbuilt into HS 6x i feel it will be used abundantly.Now that the profile module for D6 , content profile makes profile a content type it would be possible to have HS in the profile page too.
#29
Work on the D6 port will probably begin on July 4, i.e. after my exam. I was talking about an *alpha* version on July 5, not a beta or final ;)
#30
I know.I expected the same.
what abt the country functionality?Can that be added.
#31
Country? You can already do that with taxonomy. Perhaps you mean location CCK field support?
#32
yes...have mentioned it in the previous post.Sorry if it wasnt well written.
Wont it be good if its available with the new HS? Or has it to be incorporated into taxonomy?
#33
So you meant Location CCK field support, then? Still not entirely clear. Anyway, the answer to that question is yes, that's coming!
#34
have added HS to Contributed modules status - version 6.x at
http://groups.drupal.org/node/5036
Please make any changes as appropriate.
#35
lub dub......lub dub...lub dub..lub dub..the beat is gaining speed...please surprise me!
please....
#36
waited long...ready to wait longer!
because really love HS.
All the best with the work.
#37
Subscribing. :)
Also..... say I have something like Country --> Region --> State for my Taxonomies.
Will HS allow someone to select for a New Node "California", and HS automatically tag the Node as "California" *and* "Western US" *and* "United States"?
Or would it allow the Node to only be tagged as "California"?
Cheers!
//TB
#38
There's a small delay due to some obligations I had to fulfill for a client. On the bright side, this resulted in a bunch of bug fixes/improvements to the HS 3 code for D5, which will of course also apply to the D6 port :)
You can expect an alpha in a couple of days.
#39
k.i trust that.
#40
dum dum di da.. Exellent module:)
#41
whats happenin leers....stuck with sumdin...am really anxious ...
#42
Chk out the drupal download statistics for Drupal.Drupal 6 is gonna have many more users I feel.
http://buytaert.net/drupal-download-statistics-2008
#43
As you probably already understood, I didn't have the time yet to begin working on the port. Lots of unexpected things had come up.
Today, I've finally begun working on it. The necessary changes for the Menu system have already been made (including conditional file loading and a wild card loader), as well as taking advantage of hook_theme (again including conditional file loading).
I've read through the docs for the new FAPI version and that's going to be a big job to port to…
One baffling change is that while $op is gone, there's no clear replacement for me: I need buttons on $form_element level, not $form level. And that doesn't seem to be supported… As soon as I have it working, I will post a patch. And only then, possibly even only when most if it is working, I'll create a D6 branch.
Will keep you posted.
#44
k Leers.ALL THE BEST with the work.
What i would like to request is to release D6 in July...I really need it.I feel a bit sad that its not out still.But again,I can only pray to you and keep hoping.
Thanks for the reply.
#45
I found a work-around for the above issue.
Plenty of new ones though. One of which is that I was going to ditch my own form cache in favor of Drupal's own ($form_state with $form['#cache'] = TRUE). Unfortunately, merlinofchaos told me that if I choose that path, it won't be compatible with the Views exposed filters form.
So that means I'm back to where I begun. I essentially wasted an entire day because of the crappy documentation for D6 FAPI (equally crappy as D5's) and because some forms won't work when #cache = TRUE. Yay.
#46
Because I'm keeping virtually all D5 code, less changes had to be made.
It's already working! When the Taxonomy implementation is fully operational, I'll post the patch.
#47
First patch. Is against RC1.
So far only the taxonomy module is compatible, and only partially. Only its config form and the taxonomy term form's 'parent terms' and 'related terms' form items are using Hierarchical Selects.
#48
From purely a spectator's standpoint, I think HS should be in core. The functionality of Hierarchical Select filled a huge hole in the Drupal experience, and I think it's time that future Drupal development takes HS's features into account.
Wim, you're fairly "connected" in Drupal dev circles. What type of feedback do you get regarding Hierarchical Select? Am I the only person who mentions core with regards to this module, or do others also agree that your module is a UI gamechanger?
Regardless, thanks again for your work and regular updates.
#49
Rob, several "decision makers" are interested in getting HS into core. At this point, I don't think the code is clean/simple enough yet, but that's for a large part due to FAPI: I have to go through a lot of weird, painful constructs to get it working.
I will definitely try to get it in D7 core :)
#50
subscribing
#51
No doubt abt wat Rob Ts saying.It will be wonderful to have HS in core.
#52
Chasing HEAD. Taxonomy term selection in node forms is working too.
I found another bug in the 5.x version, so I'll fix it there and re-roll the patch again.
#53
It looks like I'll be making more improvements in the D5 version first. I also made a lot of changes to the D5 version while I was porting the code, mostly bad comments, but also bugs/weird code. I've attached my latest D6 code in .zip format so you can at least use that.
#54
I'm an inexperienced guy here.So Wim,can you release a 6.x dev...So that i can start testing it.
Thank you.
#55
Ehm. No. Only when the D5 version is finished. That's why I posted a .zip, just use that instead ;)
#56
There were 2 folders in the zip above.I installed the hierarchial select folder(other folder is MACOSX)
HS modules appeared in modules page and there are many new ones too of which only HS and HS Taxonomy can be activated.Others show This version is incompatible with the 6.3 version of Drupal core.
I activated the available 2 .But And when i go to my Taxonomy page and click on edit vocabulary ..the error is displayed on a blank page
Fatal error: Call to undefined function dpm() in C:\wamp\www\Drupal 6ix\sites\all\modules\hierarchical_select\hierarchical_select.module on line 345
What has to be done?
#57
Hah. That's the debug output :) Either disable "DEVELOPER_MODE" at the top of the file or install the devel module: http://drupal.org/project/devel.
#58
ok.That one is solved.Thank you Wim,
And the HS configuration page is really Superb.THe 'Preview' option is very useful and helps to save time.Thanks for adding that.
But for me ,though its working in the 'Preview' .there seems to be no change in the content submission form.I added 'help Text' and it is appearing corectly in the contet submission form and still the vocab selection is not taken over by HS.its still the core way.
Is there anything i need to do?
(I dont know whether its a problem with my config..or i have missed some thing.
i activated HS for the content type
[]Use the Hierarchical Select form element for this vocabulary.
And The selection apperars to work well in the preview as i said.)
#59
Your vocabulary is not yet hierarchical probably.
#60
it is hierarchial and works well in the 'preview' in the HS config page
#61
Thanks for rolling a zip for the D6 port. :) I've been playing with it and here are my findings.
D6 is working for both taxonomy and a custom implementation. I needed a custom implementation because I need to have multiple selection widgets each starting on one of the top-level terms of the hierarchy. Unfortunately, hs_taxonomy didn't allow me to supply the root parent in $params['tid'].
I looked at hs_content_taxonomy and while it did accept $param['tid'] in the config, it had a small issue._hs_content_taxonomy_term_within_allowed_depth(), which is used in hook_..._valid_item(), doesn't currently determine whether $item is a child of $param['tid']. Is this a bug or feature? :) My desired depth is zero.
#62
More thanks for rolling the .zip file of this functional version for D6. I managed to get it working for taxonomy (it took a few manipulations to get it right).
I disabled DEVELOPER_MODE, which got rid of the
Fatal error: Call to undefined function dpm() in ...hierarchical_select/hierarchical_select.module on line 345.
Just an FYI that the Implementation tab in HS settings yields:
Call to undefined function _module_parse_info_file() in ...hierarchical_select/hierarchical_select.admin.inc on line 114.
So far, I have been able to use this young version for what I need it for. Thanks again, Wim.
#63
sammys: Likely a bug then. Care to roll a patch? :) In any case, please create an issue for it!
Rob T: The developer_mode thing was documented and the other thing is a D5->D6 API change probably :) Thanks for reporting it here!
#64
I'm running into the same issue nirvanajyothi had.
Intially, after some semi-random configuration changes, I was able to get HS working for a vocabulary. I have since applied that other vocabulary to an additional content type, and "poof", I can no longer get HS working for my content types.
The preview works fine, (like nirvanajyothi), but once it's time to add or edit one of the content items, the form goes back to Drupal core's PIA select box.
UPDATE:
I cleared the cache (performance), and resubmitted my "list terms" page, and the HS reappeared as intended.
UPDATE 2: I had another instance where the taxonomy HS disappeared from the content type. I had changed an HS property - the "create new item" feature... I turned that off, and when I went back to my content type, the HS had reverted to Drupal's core select box. Again, I cleared the cache, then I resubmitted that vocabulary's "list terms" page, and the HS reappeared again.
#65
Another issue in D6 version...
If the Hierarchical Select is set to save only the deepest term, and is later switched to term lineage, nodes with terms already selected lose those associations, at least when editing such a node. Kinda spooky.
#66
Hi there, I've installed the zipped version of Hierarchical Select for drupal 6, im very pleased to see that this module is progressing for Drupal 6. Isn't hierarchical select suppose to display a dropdown list with the parent terms and then display another dropdown with the children terms, something similar to "Related Terms in the configurations? Why isn't it doing it?
#67
Wim,
great module, the demo looks stunning.
Waiting for Drupal 6 version.
Marius
#68
subscribing - this should definitely be core. Can't wait to use the first released version on 6.x.
#69
Wow, amazing! The config screen is really great. A lot of effort has been put into the UX - much appreciated.
I am also having problems getting HS to show up on my content type form. Just like nirvanajyothi, I can see the preview just fine but when it comes to adding content, no luck.
I have also bee clearing Drupal cache and browser cache - it doesn't help.
I am curious to know what others have done to get this to work. They have mentioned "random" configuration changes, but any clues as to what those were would be helpful.
I have attached (in two parts) my configuration settings for a very simple taxonomy structure which looks like this:
AAA
- A1
- A2
BBB
- B1
- B2
I see that it HS is successfully working in the "Advanced options" section of the "add terms" page. That screenshot is also attached.
I have also attached an array output I saw at the top of the screen once when adding a new node of the content-type I had applied my HS taxonomy to. I tried to reproduce it, but couldn't find it.
Yet another attachment is the array structure I am seeing when I go to the taxonomy list page (admin/content/taxonomy/list).
#70
Subscribing.
#71
I don't mean to be annoying, but is there any progress with Hierachical Select for Drupal 6 Wim? It's an awesome tool and it's a MUST for Drupal's core. If at least tell us it's progress!!!
thx in advance!!
#72
Subscribing
#73
subscribe
#74
+1
#75
+10000
#76
Hi Wim, two questions about this initial port so far:
1. does this initial port support Hierarchical Select for menu parent selection?
2. is it possible to use HS in combination with Node reference? (e.g., is it possible to use the existing menu hierarchy to form the node reference hierarchy level?)
* The site is D6, using the Primary Links menu to create a 4 or 5-level hierarchy for nodes.
* We will have primary links menu tree completely set up in advance, and then allow employees to add new nodes to the bottom level menu items.
* We want to make selecting a new node's place in the hierarchy as simple as possible for the user, so Hierarchical Select seems ideal rather than having employees scroll through hundreds of nodes.
* The reason that we wouldn't just show the bottom level menu items in the node reference field is that some of those have the same name... So the only way to distinguish those bottom-level items from one another is by their parent (or grandparent etc).
It would be great if we could use hierarchical select to filter a node reference form field based on their menu hierarchy :)
Thanks in advance for your advice on this!
Scott
#77
1. No.
2. No. You can sponsor this if you really want, or if you want it soon (as in: in less than 2 months or longer). Just porting to D6 itself will be plenty of work already…
#78
understood - i was mainly wondering about existing functionality - it sounded like maybe this was possible in the 5.x version but even that I'm not totally sure about. Thanks for letting me know... good luck with the port! Cheers -- Scott
#79
I'll be working on this during the code sprint today. Hopefully I can make substantial progress!
#80
@People having problems with HS not showing up on the node/add/whatever form, it's because you installed it in the modules directory. DON'T do that, it's EVIL.
@All: DON'T use this D6 port if you don't consider yourself an advanced user of HS already. Support requests like these slow me down in my work, because they're not bugs, but mistakes.
At a later stage, when it's almost ready, thus ready for beta testing, then everybody can test.
Thanks for your understanding.
#81
I installed the module in /site/all/modules but HS not showing up on my node/add/whatever form. I test all the tricks of these thread but without success...
EDIT: ok, I add ONE content for my content type that i would like use with HS and HS work :) YEAH!
#82
Subscribing. I'll provide testing. Thanks Wim for posting ZIP files I'll use that for my testing.
#83
Here are my testing results with hierarchical_select.zip (#53). Hope this testing help.
The good news:
The bad news:
In preview box when selecting a Root level the Sublevel 1 isn't displaying. Expected result is when user select chapaspoc the Sublevel 1 should appear on the right side. (Attached video 2a_vid_preview.zip & screenshots for various HS settings). [Preview box is located at: Administer > Content management > Taxonomy > Hierarchical Select configuration > Preview.]Same as Rob T clicking Implementations button return error. Expected result is to be directed to Implementations page. [Implementations button location: Administer > Site configuration > Hierarchical Select > Implementations button.]Attached screenshots (2g_settings_hs_config.png & 2h_settings_hs_implementations.png).
Testing with a Drupal 6.4 fresh intall and Devel 6.x-1.10 to quickly generate dummy taxonomy, CCK 6.x-2.0-rc6, jQuery Update 6.x-1.1, Content Taxonomy 6.x-1.0-beta3. HS is install into /sites/all/modules instead of modules directory. I consider mysef an advanced user of HS using & configuring it often since version 1. Using hard refresh, clear Drupal cache and browser cache before each test.
The following are notes to myself for future testing reference:
#84
For the problem in the Implementation tab in HS settings yields:
"Call to undefined function _module_parse_info_file() in ...hierarchical_select/hierarchical_select.admin.inc on line 114."
So in line 114 in the file .hierarchical_select/hierarchical_select.admin.inc
Replace the line
<?php$module_info = _module_parse_info_file(dirname($filename) ."/$module.info");
?>
by
<?php$module_info = drupal_parse_info_file(dirname($filename) ."/$module.info");
?>
@Onopoc
In attachment a archive with this little correction and debug message disabled.
You find here http://drupal.org/node/60108 how you can apply a patch.
EDIT: @Onopoc oups we have posted comment in the same time lol
#85
Hey Wim,
First I want to say a big thank for your great efforts. Then I have a question, Is it a normal port to v6 or it needs more than that. I mean if I used Coder and just replaced the deprecated and added the new methods, is that enough?!
Thanks again
#86
Onopoc: I'm sorry, but half of that was useless. See #79:
I've made progress, but it wasn't ready yet, so I didn't post it yet, but you, my friend, tested using the outdated port. Of course there are no improvements!
Luckily, the other half IS useful, so it wasn't a waste of your time either :) By the way, your "good news" is not new, it's been in HS 3 for quite some time now :)
gagarine: thanks, will fix that.
All: PLEASE wait with testing/commenting until the next .zip :) That's more effective for everybody! The next update wil have menu system support, yarrr!
#87
gagarine: Thanks for the patch #84. It works. Issues 2 & 3 are fixed.
Wim: Ok I'll wait with testing until you decide that a new .zip is ready for testing. Thanks.
#88
+1
#89
any news Wim? do you need any help?
#90
I'm on a vacation right now. Will be back on Friday. Expect a new version on Monday.
#91
Happy vacation Wim and sorry for annoying ...
#92
New version. Working menu implementation. 90% of the work on the menu implementation has been done during the code sprint.
The patch is massive by now. 80 KB. Patch is against current HEAD.
I beat my deadline by 2 days, yay :)
#93
Thanks a lot for this,friend!
Hope you had a great time on vacation!
#94
sounds good, really good I'll try it now and can't wait for the next release.
#95
subscribing
#96
Here are my testing results with hierarchical_select.zip (comment #92). Hope this testing helps.
The good news:
The bad news:
Attached screenshots (2_Fatal_error_implementations1.png & 2_Fatal_error_implementations.png).
Testing done with:
Note to myself for future HS testing:
#97
Subscribing.
Looks like a module I have long been waiting for. Waiting for D6 to be finished. I wish I had money to speed it up :)
#98
Hello!
Is it possible to make integration between hierarchical select and taxonomy browser?
Thank!
#99
Bookmark
#100
Hi Wim,
I've tested #92
Fantastic ;)
One thing that I noticed (not exhaustive testing, but hopefully this helps):
* For taxonomy vocabularies, the option to 'Reset selection of hierarchical select' does not work properly with the option to 'Force the user to choose a term from a deepest level'.
- What happens is... after the first deepest level term is added to the drop box, HS resets to the root term - but it's children do not show anymore (unless you navigate to a different term, and then back). So the result is the user can select the root term (not forced to select only the deepest level).
Also, I wonder whether something has been worked on yet or not? (I would like to help test, but not sure if it's ready yet):
* Is the HS 6 port able to work with exposed views filters (I wasn't able to see where to configure this if so)?
Also, an installation Question:
* I don't have jquery_update installed in my test site, and seems to be ok - but is that necessary for this 6.x version?
#101
Testing and subscribing to the discussion.
Cheers,
-ROR
#102
Please don't change the title
#103
tracking, thanks
#104
Please don't change the title
Sure. Sorry.
I thought that it would be a better title and people would immediately know what it referred to (i.e. in the tracker).
Cheers,
-ROR
#105
subscribing
#106
To the people tracking this: I haven't forgotten about this, but university has started again, immediately with insane amounts of work, preventing me to work on this.
I hope to continue working on this in 1/2 weeks.
#107
how many people are actively developing this project? Any ideas when the code move from this thread to a dedicated -dev release?
#108
I'm the only one.
As soon as the next (last) RC of the 5.x version is out, I will make a 5.x branch, and then this will be committed to HEAD, resulting in a 6.x-dev release. That'll be in about the same timeframe, but hopefully sooner.
#109
subscribing
#110
subscribing
#111
Status update!
The DRUPAL-5--3 branch has been created. This means I'll be able to commit this patch and will be able to provide you with dev tarballs.
As I'm *extremely* busy because of school, it's unlikely I'll be able to continue working on this seriously in the next few weeks. I should be able to get the most blatant problems fixed in that same timeframe though. That means you'll actually be able to use HS reliably in D6, although the number of supported implementations will remain limited for quite some time. However, you could update those implementations yourself, as the API is entirely documented (and will receive more documentation soon-ish).
I will first focus on the "launch" of Hierarchical Select 3 for Drupal 5.
#112
Great!
Out of curiosity (and because it's important for one site I'm working on), will the 6 port able to work with exposed views filters?
I wasn't able to see where to configure this in #92, but I may have just missed where to configure this?
Knowing what to plan on would be a big help.
Cheers :)
Scott
#113
Exposed filters won't be supported soon. Views 2 is a very different beast. I hope somebody else will step up and work on that.
#114
subscribing
#115
subscribing
#116
subscribing
#117
While trying to port this module I came across this line 600 of [i]hierarchical_select.module[/i]:
Line 600: Changes to cache_set() parameter order (Drupal Docs)
[code]
cache_set($hs_form_build_id, 'cache', serialize($storage), $expire);
[/code]
I had a look at Drupal docs (http://drupal.org/node/114774#cache-set-parameter-order) but couldn't relate the example to the stuff above.
Any one knows a way around this?
Kind Regards,
Ali Imtiaz
#118
Subscribe
#119
Subscribing.
#120
Im not a coder, so dont trust me!
cache_set($hs_form_build_id, 'cache', serialize($storage), $expire);From that example i would think i need to remove 'cache' part and MAYBE change order of elements in brackets.
cache_set($hs_form_build_id, serialize($storage), $expire);or
cache_set(serialize($storage), $hs_form_build_id, $expire);#121
subscribing
#122
subscribing
#123
I have an HS element in a block which displays on the sidebar of my site. When I use the site search form, the HS element in my block stops working properly on the search results page. It seems to think that JavaScript is not enabled, probably because it errors on the JavaScript at hierarchical_select_formtoarray.js, line 31:
...27 var els = semantic ? form.getElementsByTagName('*') : form.elements;
28 if (!els) return a;
29 for(var i=0, max=els.length; i < max; i++) {
30 var el = els[i];
31 var n = el.name;
32 if (!n) continue;
...
the error as reported by Firebug is:
el is null#124
Hrm, that's not my code, but a portion of the code of the jQuery Form plugin. I might have to update that as well.
#125
subscribing
#126
subscribe
#127
subscribing
#128
subscribing
#129
I cant wait for D6 version!
#130
Subscribing
#131
any good news? when can we start testing?
#132
Subscribing,
The Content taxonomy part of this module is the only thing keeping me from upgrading. I'm currently using the "activemulti" widget found here http://drupal.org/node/180687 but want to upgrade to H.S.
#133
subscribing
keep up the good work Wim!
#134
subscribing
#135
at #102 Wim asked not to change the title, but #104 is right, would be better to follow this issue having a title which references HS somehow
#136
Fair enough. Makes it easier for everybody who's following this issue I guess :)
#137
Hey Wim,
Hows progress on the Content_taxonomy widget going? I am not a coder but sent it through deadwood to see If I could get someplace... Got an error.... and coder didnt show anything weird about it. Would any of this help you?
Also, what kind of $$ would help you accelerate your work? I know I'd be willing to pitch in and I'm guessing others would also.
#138
No money would help. The only reason for this being … well, frozen … for now is that I'm absolutely flooded with university work. See my blog post about this: http://wimleers.com/blog/how-much-is-too-much.
#139
I see, so maybe my question should be, what kind of homework do you need for us to do :)... j/k
I know school can be a killer so I understand.
#140
subscribing
#141
Subscribing. Looking forward to Drupal 6 version :)
#142
subscribing
#143
We've been testing out the zip from #92 and found a moderately troublesome issue.
We have a hierarchical taxonomy where some terms have multiple parents. When we try to use HS on those terms, there is a display issue where the term with multiple parents is shown twice in the hierarchy (see attachment).
Additionally, with these terms you can't associate a node with the child of a term with multiple parents. You can select it, but when you click add it adds its immediate parent (i.e., the term with multiple parents).
#144
subscribe
#145
Drupal 6.6 Preview works great, but in any material creation nothing happens. installed from #92
#146
subscribing
#147
same than #145
#148
Subscribing
#149
+me
#150
subscribing
#151
Apologies for any folks receiving automated emails: subscribing.
#152
subscribe for v6
#153
Ported hs_content_taxonomy for 6.x core (using init port from #92)
1) copy/overwrite files from archive to ./hierarchical_select/modules/ directory.
2) enable module in admin
3*) strongly recommended patch http://drupal.org/node/319724
#154
WOOT, thanks losionok! There couldn't be a better time, because … I've found the time to update that patch. Working on it as we speak.
It seems you did forget to attach the archive you mention though :)
#155
Look at that version! :)
See the liberating commit.
I will now process the bug reports in this issue. New bug reports should be reported as separate issues.
#156
Oh and this was the final patch that I committed.
#157
Great Job, Thanks for finding a little time to work on this even with your busy schedule. I'm excited about this.
#158
ups =)
#159
Initial test:
I just installed the head version of HS using drush.
Then went to the hs/modules directory and extracted the zip in #158
I enabled HS first.... no problems... then I enabled the other 3: hs menu, hs taxonomy, and hs content taxonomy and I get this error:
This is on Acquia Drupal.
* warning: Missing argument 1 for hs_menu_menu() in /home/myusername/public_html/obn/sites/all/modules/hierarchical_select/modules/hs_menu.module on line 16.* warning: include_once(sites/all/modules/hierarchical_select/includes/theme.inc) [function.include-once]: failed to open stream: No such file or directory in /home/myusername/public_html/obn/includes/theme.inc on line 283.
* warning: include_once() [function.include]: Failed opening 'sites/all/modules/hierarchical_select/includes/theme.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/myusername/public_html/obn/includes/theme.inc on line 283.
* warning: include_once(sites/all/modules/hierarchical_select/includes/theme.inc) [function.include-once]: failed to open stream: No such file or directory in /home/myusername/public_html/obn/includes/theme.inc on line 283.
* warning: include_once() [function.include]: Failed opening 'sites/all/modules/hierarchical_select/includes/theme.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/myusername/public_html/obn/includes/theme.inc on line 283.
* warning: include_once(sites/all/modules/hierarchical_select/includes/theme.inc) [function.include-once]: failed to open stream: No such file or directory in /home/myusername/public_html/obn/includes/theme.inc on line 283.
* warning: include_once() [function.include]: Failed opening 'sites/all/modules/hierarchical_select/includes/theme.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/myusername/public_html/obn/includes/theme.inc on line 283.
* warning: include_once(sites/all/modules/hierarchical_select/includes/theme.inc) [function.include-once]: failed to open stream: No such file or directory in /home/myusername/public_html/obn/includes/theme.inc on line 283.
* warning: include_once() [function.include]: Failed opening 'sites/all/modules/hierarchical_select/includes/theme.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/myusername/public_html/obn/includes/theme.inc on line 283.
* warning: include_once(sites/all/modules/hierarchical_select/includes/theme.inc) [function.include-once]: failed to open stream: No such file or directory in /home/myusername/public_html/obn/includes/theme.inc on line 283.
* warning: include_once() [function.include]: Failed opening 'sites/all/modules/hierarchical_select/includes/theme.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/myusername/public_html/obn/includes/theme.inc on line 283.
* warning: include_once(sites/all/modules/hierarchical_select/includes/theme.inc) [function.include-once]: failed to open stream: No such file or directory in /home/myusername/public_html/obn/includes/theme.inc on line 283.
* warning: include_once() [function.include]: Failed opening 'sites/all/modules/hierarchical_select/includes/theme.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/myusername/public_html/obn/includes/theme.inc on line 283.
#160
I have errors too on the latest d6 version :
<?phpwarning: include_once(sites/all/modules/hierarchical_select/includes/theme.inc) [function.include-once]: failed to open stream: No such file or directory in drupal6includestheme.inc on line 283.
?>
I created this issue about it.
#161
#93
This is because an internal API of Drupal core has changed. Fixed now.
GREAT catch! I lost half an hour tracking down the cause without success, unless I noticed that scottrigby's feedback (#100) was about the exact same thing. And … yes … this is also a bug in the Drupal 5 version! I guess nobody has tried this combination of settings before.
I haven't fixed this one yet, but I did create an issue: http://drupal.org/node/341881.
This has been fixed in the Drupal 5 version of HS, and therefore also for the D6 version. You can see it right here: http://wimleers.com/demo/hierarchical-select/taxonomy.
#100
See reply to #93.
This is not yet supported.
This isn't necessary. I've updated the README to reflect this. Thanks!
#143
This is pretty much impossible. Taxonomy hasn't changed in Drupal 6. In Drupal 5, this works just fine. You *must* enable save_lineage though, otherwise it's impossible to restore the lineage upon view or edit. But your screenshot shows a messed up HS, which definitely seems impossible to me.
#145
It works just fine here. If you can still reproduce the issue with the current version, please report this as a new issue.
losoniok
Thank you very much for your work on hs_content_taxonomy! Much appreciated :)
I will review it ASAP. Would you mind creating a new issue for it? That's easier for other interested people to subscribe too instead of this enormous issue!
#162
Woow!
Thank you Wim Leers, losionok and all for the dev version.
The long wait will now soon end!
-thank you
#163
I'm getting the following message:
This version is incompatible with the 6.6 version of Drupal core.Which is weird 'cause I can't see anything in the info files that would cause that...
#164
Found it - in the .info files, the format is wrong, eg:
-dependencies = hs_content_taxonomy_views content_taxonomy
+dependencies[] = hs_content_taxonomy
+dependencies[] = content_taxonomy
#165
More bugs in 6.6 - it doesn't look like the module has been updated to work with the latest Views, I'm getting errors about the view_view table (which is now views_view) and it's being rude about views_load_cache() as well. Not quite sure what's going on, but neither taxonomy or content_taxonomy modules work!
#166
@z allen: I replied to your other issue. Cross posting is not appreciated. The README clearly states that those modules haven't been ported yet, and that's also why you were getting those warnings ;)
#167
D'oh. Somebody needs to create a USB device that reaches out and smacks people on the hand just before they hit "submit."
#168
Ha, like this http://www.thinkgeek.com/geektoys/warfare/8a0f/
:)
#169
that0n3guy: OH MY GOD /me wants
#170
Subscribing
#171
subscribing with whipped cream and a cherry on top.
#172
Hi,
Have just installed the attached zip for HS Content Taxonomy and receive error:
warning: array_unshift() [function.array-unshift]: The first argument should be an array in /home/mysite/public_html/sites/all/modules/hierarchical_select/modules/hs_content_taxonomy.module on line 42.
Perhaps I should wait for the full update of HS for Drupal 6.6?
Thank you for your module!
Lilian
#173
You should try the current 6.x-dev version now that its official
#174
Thank you watbe for your quick reply.
Yes, I have downloaded latest version, but Hierarchical Select Content Taxonomy has error 'This version is incompatible with the 6.6 version of Drupal core.'
The above zip is compatible, but ..
warning: array_unshift() [function.array-unshift]: The first argument should be an array in /home/mysite/public_html/sites/all/modules/hierarchical_select/modules/hs_content_taxonomy.module on line 42.
Look forward to any news, and thank you.
Lilian
#175
Its not ready for use yet from what I know, but I may be wrong. Its probably best to start a new issue, as this is getting really really long.
#176
I get the same error and believe it's a known issue.
#177
The "incompatible" is due to an error in the format of the dependencies declaration in the .info files, I posted a fix a few comments back...
-dependencies = hs_content_taxonomy_views content_taxonomy
+dependencies[] = hs_content_taxonomy
+dependencies[] = content_taxonomy
#178
Grr everyone stop posting in this issue. A beta is out, if you have a problem make a new issue!
#179
Quote: OH MY GOD /me wantsHa, they had those on woot.com a while ago for cheap... but I didnt get one... I'm such a loser :).
#180
Hello Wim,
comment on zip provided in comment #158
I have installed zip provided there of content taxonomy but it is giving me some errors on field configuration settings
1)
hs_content_taxonomy_common_config_form_submit() function has
drupal_execute('_content_admin_field', $form_state['values'], $field['type_name'], $field_name);
it is creating following error :-
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_content_admin_field' was given in /var/www/test/includes/form.inc on line 366.
2)
And after saving node i get ......
* warning: array_unshift() [function.array-unshift]: The first argument should be an array in /var/www/test/sites/all/modules/hierarchical_select/modules/hs_content_taxonomy.module on line 44.
* warning: array_unshift() [function.array-unshift]: The first argument should be an array in /var/www/test/sites/all/modules/hierarchical_select/modules/hs_content_taxonomy.module on line 45.
* warning: Illegal offset type in isset or empty in /var/www/test/matri/modules/taxonomy/taxonomy.module on line 1015.
* warning: Illegal offset type in /var/www/test/matri/modules/taxonomy/taxonomy.module on line 1016.
* warning: Illegal offset type in /var/www/test/modules/taxonomy/taxonomy.module on line 1019.
* warning: Illegal offset type in isset or empty in /var/www/test/modules/taxonomy/taxonomy.module on line 1015.
* warning: Illegal offset type in /var/www/test/modules/taxonomy/taxonomy.module on line 1016.
* warning: Illegal offset type in /var/www/test/modules/taxonomy/taxonomy.module on line 1019.
Please help me fixing this error...
Chandu
#181
Any plans to port HS to Drupal 6.8.?
Hierarchical Select Book 6.x-3.x-dev Use Hierarchical Select for selecting the parent page of a book page.
This version is incompatible with the 6.8 version of Drupal core.
Hierarchical Select Content Taxonomy 6.x-3.x-dev Use Hierarchical Select as the widget for Content Taxonomy CCK fields.
This version is incompatible with the 6.8 version of Drupal core.
Hierarchical Select Content Taxonomy Views 6.x-3.x-dev Use Hierarchical Select for Content Taxonomy exposed filters in Views.
This version is incompatible with the 6.8 version of Drupal core.
Hierarchical Select Flat List 6.x-3.x-dev Allows Hierarchical Select's dropbox to be used for selecting multiple items in a flat list of options.
This version is incompatible with the 6.8 version of Drupal core.
Hierarchical Select Taxonomy Subscriptions 6.x-3.x-dev Use Hierarchical Select for Taxonomy Subscriptions.
This version is incompatible with the 6.8 version of Drupal core.
Hierarchical Select Taxonomy Views 6.x-3.x-dev Use Hierarchical Select for Taxonomy exposed filters in Views.
This version is incompatible with the 6.8 version of Drupal core.
#182
Same as #145(preview looks great though!) - subscribing. Upon further inspection - Taxonomy adding new terms to a vocabulary uses the HS module. Very cool - can't wait to use it for my custom content type. Thanks Wim!
#183
@La_ntegral, @chandubhai > Please use the dev version and make a new issue.
I am going to try port one or two of these as necessary, will make or post in the relevant issues.
#184
This looks like the module I need, but need some advice:
I have a CCK form (D6) for entering data for a real estate site, eg, info about a particular condo building. I use content_taxonomy for this in general, when the number of terms is reasonable, but in one particular case, selecting country -->province -->district -->town, the final list of "town" for the entire country has thousands of entries (obviously gets completely untenable with multiple countries), so therefore I need a way of narrowing the hierarchical choices, by parent, and populating all the respective fields in the form with all of the sub-category choices in the hierarchy.
Lots of websites use this functionality, particularly sites that have large catalogs of stuff to wade through. In the past this was all done with page refreshes, but that's old school. I just need a way to select a chain of terms in some way so as not to have to look through a list of 5000 towns in a hierarchical menu. I could I suppose resort to the "auto-complete" technique, but prefer a drop down list.
Is there any other way to accomplish this, or is this more obvious to do than a newbie like me can presently discern?
Tnx, Jeff
#185
Please make a new support request. This topic is closed.
#186
Just installed the 6.x-3.x-dev on 6.9 and have lost access to administrator section. Had to go back through browser and disable HS modules
#187
sullyman: already reported here: http://drupal.org/node/345951
#188
great. Subscribing.
#189
Anything new on the porting side?
#190
#189: it's been ready to use for months now. Just give the 6.x-dev snapshots a try :)
#191
Hi Wim Leers,
It has been long! Is there a reason why this module has no alpha version yet?
-Thank you.
#192
#190: Then maybe the HS module description should reflect that the 6.x-dev is ready for use? I'm new to HS and had to search a while until i found this closed issue.
(A release in alpha or beta would be even better, I generally try to stay away from dev version.)
#193
@Wim Leers -- I'd support you locking this thread for further comments -- say the word, and I'd be glad to do it --
@ people commenting on this issue -- the port is well under way, and has been for a while. Grab the dev version, test, report bugs, etc -- but please, refer to #190, #185, #161, etc.
#194
Downloaded the zip in #158, installed. When I went to the HS config form provided in the CCK field options I got this error:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_content_admin_field' was given in /home/.esprit/fsmadmin/clients/SAP/includes/form.inc on line 366.
#195
@freeStyle_Media: please open a new issue, since this thread is already closed