Closed (fixed)
Project:
Hierarchical Select
Version:
7.x-3.x-dev
Component:
Code - Taxonomy
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2008 at 18:45 UTC
Updated:
3 May 2012 at 17:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
wim leersYou want to display it in a manner like "term 1 > term 2 > term 3"? If not, please clarify.
Comment #2
autonetex commentedYes, like that. Some kind of control on the field (content field) level, rather than hacking it. Also list style like "term1, term2, term3" as second choice/option will be nice.
Comment #3
wim leersI will look into this.
Comment #4
autonetex commentedThank you, we can to as paid service.
Comment #5
wim leersImplemented!
You could still show your appreciation by donating some money ;) :)
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
BenK commentedHi everyone,
I'd like to suggest a new type of hierarchical formatter for content taxonomy fields. Basically, I'd like only the last term in the hierarchy to be a link, but the parents terms in the hierarchy to be displayed as text.
Here's why: In out use case, we aren't saving the entire lineage (we've selected the default "save only the deepest term option"). As a result when you follow the link to a parent term, there are no nodes displayed on the parent term page. So we'd like to be able to link users to the deepest term page, but just show the parent links as non-linked text.
How difficult would it be to create this as a new formatter for use on the CCK "display fields" page?
Thanks,
Ben
Comment #8
wim leersThat'd be very easy.
I'll definitely accept a patch that implements this.
You'll want to edit modules/hs_content_taxonomy.module. Start by looking at the
hs_content_taxonomy_field_formatter_info()function and you'll find the other relevant portions of code easily :)Comment #9
Bilmar commentedsubscribing
Comment #10
wim leersClosing due to lack of response.
Comment #11
Hardrocker commentedHi there I am creating a business directory website and am having some problems with the taxonomy levels. What I am trying to do is this. I have the vocabulary with predefined terms as shown here http://pastebin.com/8CtbZKNm These terms are a multiple select list via check box since one business can fall into different categories. However what I want is to also have users after selecting a category or categories for their business they must also specify a more specific business nature/type. This business nature/type I am hoping to use cck content taxonomy with autofreetagging based on the user's inputs. My question is how can I have the autofreetagging values added under the terms (categories) as a sub-term? Example is Consutants and Contractors =-> Civil Engineer Consultants, Electrical Contractors etc
Comment #12
diego.mazzaro commentedI'm here submitting a patch to add new formatters.
These two are already available:
These are what I am providing:
I did some tests but obviously a community review has to be carried out.
Hope this can be useful.
PS: I changed the version of this topic to 7.x-3.x-dev since it has been in this version that I've implemented the patch
Comment #13
wim leersYou very clearly explained what you added. Before I can properly review this patch, you will have to reroll it to fix formatting issues: you've used tabs in some places. Drupal uses 2 spaces per indentation level instead of tabs.
Please see http://drupal.org/coding-standards :) Furthermore, I'm honored that Hierarchical Select is the first module you're contributing to! Thank you very much! :)
Comment #14
diego.mazzaro commentedGulp... ...coding-standards...
you're rigth! ..thanks for your polite advice.
I did the homeworks ;-) and here is back my patch! ...fixed in tabs and also other few spaces that were missing.
Comment #15
wim leersAlmost perfect: code works perfectly, only minor formatting issues remained, which I fixed for you. Thank you very much — very nice addition! :)
I'm looking forward to more of your high-quality patches ;) :)
Commit: http://drupalcode.org/project/hierarchical_select.git/commit/ca7787e.
Comment #16
wim leersAlso see #1539808: Also include Hierarchical Select's hierarchical term formatters.