Closed (fixed)
Project:
Hierarchical Select
Version:
6.x-3.6
Component:
Documentation
Priority:
Minor
Category:
Support request
Assigned:
Reporter:
Created:
21 Sep 2009 at 13:22 UTC
Updated:
29 Nov 2010 at 20:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
webdev2 commentedI have also added the following to the body field with PHP filter:
print theme('hierarchical_select_selection_as_lineages', $node->taxonomy, $config);endif;It displays nothing when saved. Interestingly enough, in the page form (in edit mode) the taxonomy menu does appear correctly. All I want is for it to appear on the page after editing - when the page is saved and an anonymous user views it.
Thanks.
Comment #2
wim leers1) Do you want to display the lineages or the Hierarchical Select form item?
2) Is the vocabulary id of your vocabulary really 2?
Comment #3
webdev2 commented- I'm not sure sure what the difference between lineages or the Hierarchical Select form item.
- I put #2 because when I click to edit the vocabulary I want to use, the link is /admin/content/taxonomy/edit/vocabulary/2
Not knowing the difference between lineages and the Hierarchical Select form item, here's what I want:
when an anonymous user comes to a page I created, they see something very similar to what is on your demo page:
http://wimleers.com/demo/hierarchical-select/taxonomy
except, of course, my taxonomy.
Thanks.
Comment #4
wim leersThat is in fact a form, just without a save button. Are you sure you don't want to present saved taxonomy data as in the attached screenshot (that's "displaying the lineages")?
If you really want to show a Hierarchical Select form item to allow users to browse the hierarchy, simply build a form without a submit function. You should be able to find out how to do that on your own.
Comment #5
webdev2 commentedMany thanks for your time to answer my questions.
I understand now that page was a form without a save button - how do you do that?
The taxonomy is root + 1 deep. The user needs to be able to select the first and see the results of the that selection in the second select box. That's all the user needs. They will not make changes to anything. I just need it to display LIKE it would in a form.
Does that make sense? Thanks.
Comment #6
wim leersLook at API.txt for an example on how to create a HS form item. You'll have to learn yourself how to use the Forms API.
Comment #7
webdev2 commentedThanks for your help. I see it's usefulness for projects. I don't think it would make sense on mine now. Thanks again.
Comment #9
ranavaibhavusing above code, i can see the linage printed, but they are just labels. Is there a way to link labels to it's term page?
i get following without links:
etc
Comment #10
wim leersOverride the theme function (theme_hierarchical_select_selection_as_lineages()) to achieve that.
Comment #11
ranavaibhavThanks Wim for the quick response. However could you please give me some hints? I added the function in my theme template.php but have no idea what to modify. Sorry i don't know much about php. If my request is too specific, please feel free to close the issue. Thanks.
Comment #12
ranavaibhavwoops!forgot to change the status.
Comment #13
wim leersIf you don't know much PHP, you should learn it. It's not ethical to expect other people to do your work for you.
Comment #14
ranavaibhavThanks for your reply. I was not expecting you to do work for me. I was just seeking your HELP or HINT. But thanks anyway.
Comment #15
wim leersI gave you sufficient hints. It's not sufficient for you because your knowledge level is not yet high enough. Just learn, try and you'll get there! :)