[drupal-devel] [feature] List matching terms by vocabulary for nodes

Bèr Kessels drupal-devel at drupal.org
Sun Feb 27 23:51:34 UTC 2005

Issue status update for http://drupal.org/node/9780

 Project:      Drupal
 Version:      cvs
 Component:    taxonomy.module
 Category:     feature requests
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  nedjo
 Updated by:   Bèr Kessels
 Status:       patch

Bump. This still lloks interesting but is old and does no longer apply.
Should it be updated or closed?

Bèr Kessels

Previous comments:

August 5, 2004 - 07:13 : nedjo

Attachment: http://drupal.org/files/issues/taxonomy-select-link-list-type-patch.zip (2.76 KB)

When displaying the terms for a node, it would be desirable in some
contexts to have a vocabulary-specific list instead of the default list
of all matching terms.
For example, consider a posting that represents a farm, categorized by
(a) products produced, (b) farming practices, (c) location, etc.  By
default, it would display as follows:
Submitted by Tracy Brock [1] on Mon, 06/14/2004 - 22:20.
    beans [2] | certified organic [3] | corn [4] | Fruits and Berries
[5] | gooseberries [6] | Grainery [7] | herbs [8] | Nanaimo [9] |
Pacific Agricultural Certifcation Society (PACS) [10] | peas [11] |
Producers [12] | raspberries [13] | rye [14] | vegetables, various [15]
But it would be useful to be able to separate out the different
vocabularies, to see at a glance, for instance, products produced, as
Farming Practices [16]

certified organic [17]

Location [18]

Nanaimo [19]

Membership [20]

Pacific Agricultural Certifcation Society (PACS) [21]

Products [22]

rye [23]
raspberries [24]
gooseberries [25]
Fruits and Berries [26]
vegetables, various [27]
peas [28]
herbs [29]
corn [30]
beans [31]

Resource Type [32]

Producers [33]
Grainery [34]

The attached patch introduces a new vocabulary setting, link_display,
to allow site admins to select either the default display of terms for
a node ("top") or, if prefered, a vocabulary-specific breakout in the
body of the node display ("body").  It's implemented using the
_nodeapi() "view" option.  Also included are patches for the
database.mysql and database.pgsql files to introduce a new field into
the vocabulary table.
[1] http://drupal.org/?q=user/view/3\" title=\"View user profile.
[2] http://drupal.org/?
[3] http://drupal.org/?
[4] http://drupal.org/?
[5] http://drupal.org/?
[6] http://drupal.org/?
[7] http://drupal.org/?q=taxonomy/page/or/112
[8] http://drupal.org/?
[9] http://drupal.org/?q=taxonomy/page/or/146
[10] http://drupal.org/?
[11] http://drupal.org/?
[12] http://drupal.org/?
[13] http://drupal.org/?
[14] http://drupal.org/?
[15] http://drupal.org/?
[16] http://drupal.org/?q=vocabulary/view/4
[17] http://drupal.org/?q=taxonomy/view/or/127
[18] http://drupal.org/?q=vocabulary/view/6
[19] http://drupal.org/?q=taxonomy/view/or/146
[20] http://drupal.org/?q=vocabulary/view/5
[21] http://drupal.org/?q=taxonomy/view/or/136
[22] http://drupal.org/?q=vocabulary/view/2
[23] http://drupal.org/?q=taxonomy/view/or/137
[24] http://drupal.org/?q=taxonomy/view/or/66
[25] http://drupal.org/?q=taxonomy/view/or/108
[26] http://drupal.org/?q=taxonomy/view/or/8
[27] http://drupal.org/?q=taxonomy/view/or/32
[28] http://drupal.org/?q=taxonomy/view/or/114
[29] http://drupal.org/?q=taxonomy/view/or/31
[30] http://drupal.org/?q=taxonomy/view/or/83
[31] http://drupal.org/?q=taxonomy/view/or/39
[32] http://drupal.org/?q=vocabulary/view/3
[33] http://drupal.org/?q=taxonomy/view/or/11
[34] http://drupal.org/?q=taxonomy/view/or/112


August 15, 2004 - 05:17 : nedjo

No response as yet, so I'll try to do a better job of explaining the
advantages of this patch!
While it's most used for simple sections of a website, the taxonomy
system enables rich relational database functionality.  For any data
type, it can track multiple "one-to-many" or "many-to-many"
relationships.  For example, using no more than the existing taxonomy
system, it would be possible to track, for a company node type,
multiple products, customers, projects, and staff (each of these being
a separate vocabulary).
The current way of displaying linked terms for a node - lumping them
together in an alphabetical list with no indication of what vocabulary
they are from - makes sense for the "sections of a website" use, but
doesn't take full advantage of the taxonomy system's ability to provide
multiple categorizations.  For the company example, it would be
preferable to separate out, e.g., products as a distinct listing.
This patch doesn't replace the existing way of displaying categories. 
Rather, it provides an option--to designate specific vocabularies to
display instead in a list form.  This functionality would help to take
fuller advantage of the powerful and flexible taxonomy system.


August 16, 2004 - 09:29 : Dries

Maybe provide some screenshots to illustrate the proposed

More information about the drupal-devel mailing list