Closed (duplicate)
Project:
Taxonomy List
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2008 at 08:41 UTC
Updated:
23 Sep 2008 at 13:04 UTC
Hi,
I like this module, but in my case, I need to get a tabular node List under http.../taxonomy/term/tid instead of direct nodes all messed-up ( I have a large number of nodes).
Some thing like :
Title1 Teaser1 (with link to node)
Title2 Teaser2 (with link to node)
Title3 Teaser3 (with link to node)
Title4 Teaser4 (with link to node)
would be great.
Do you think it is possible ?
Or how could I get this another way ?
Thanks a lot.
Comments
Comment #1
chipway commentedHi, I modified taxonomy_list.module this way, to get a "Taxonomy_vtn" list of nodes :
Call to Core taxonomy_term_path($term) function, replaced by called to new local function : _myweb_taxonomy_term_path($term).
It may be a wrong way to do it, but it helps now.
==================
/**
* Function not maintained by Core taxonomy.module, to get List of nodes instead of direct nodes.
*
* @param $term
* A term object.
* @return
* An internal Drupal path.
*/
function _myweb_taxonomy_term_path($term) {
$vocabulary = taxonomy_vocabulary_load($term->vid);
if ($vocabulary->module != 'taxonomy' && $path = module_invoke($vocabulary->module, 'term_path', $term)) {
return $path;
}
return 'taxonomy_vtn/term/'. $term->tid;
}
====================
But the problem is that Users may come back to Taxonomy VTN and not Taxonomy List.
Thanks
Comment #2
nancydruHave you tried the module's "list" function? Have you looked at Taxonomy Redirect?
Comment #3
chipway commentedThank you Nancy,
I found a lot of ***list*** functions in taxonomy_list.module but I don't found one for nodes list.
Taxonomy Redirect could be helpfull but it is only for d5 and I don't want to redirect all taxonomy pathes.
Still searching.
Thank you.
Comment #4
nancydruTaxonomy Redirect works on a vocabulary basis. You can ask them to update it for 6.x. But if you feel comfortable messing in teh database, just go to the vocabulary table and enter "taxonomy_vtn" in the "module" column of any vocabularies you want this done for.
Try http://www.example.com/taxonomy/vocabulary/xxx/0/list to get a list of nodes with teasers. Note that "xxx" is the vocabulary number.
Comment #5
chipway commentedHi NancyDru,
Thank you very much for your help.
My last update : I created a view "my_custom_view" and modified taxonomy_list.module this way, to use it to list all nodes under a term tid, using my previous _myweb_taxonomy_term_path($term) function.
One point about views here is that I can allow users to refine on Specific Filters (great).
So I get
- Hierarchical Categories From Taxonomy List
- Flexibility of Views for my nodes lists.
==================
/**
* Function not maintained by Core taxonomy.module, to get List of nodes instead of direct nodes.
*
* @param $term
* A term object.
* @return
* An internal Drupal path.
*/
function _myweb_taxonomy_term_path($term) {
$vocabulary = taxonomy_vocabulary_load($term->vid);
if ($vocabulary->module != 'taxonomy' && $path = module_invoke($vocabulary->module, 'term_path', $term)) {
return $path;
}
return 'my_custom_view_path/'. $term->tid;
}
====================
Hope this could help some one else.
Or may be "Taxonomy List" Maintener would like to add a config item : "your_custom_view_path" to the module config ??
Comment #6
nancydruIt sounds like it might be useful. Can you write it up, perhaps in a manner similar to what you'd like to see in the handbook documentation.
Comment #7
chipway commentedIt could be something like :
Go to admin/settings/taxonomy_list
Group Nodes by term :
Default = All nodes in full node mode
For custom listing, Check "set my own view list for nodes by term" and type in a field the "name of your custom view".
Thank you.
Comment #8
nancydruThanks. I was thinking something more like why someone might want to use this -- a use case.
Comment #9
chipway commentedOh,
My own use case is :
- I have hundreds of nodes in each taxonomy term.
- Each node uses several terms, so I can filter nodes on several terms, but I need a form to let users choose what terms and what operation they want to use; ex : I created a view with country filter, language filter, node created date filter, ...
The goal is that, instead of having hundreds of full nodes & tens of pages to walk thru, user may filter the term on theses filters to get a tabular list much more easy to use.
I thing the point is "hundreds or tens of nodes in a single term".
Is it what you are waiting for ?
Thanks
Comment #10
nancydruOh, have you looked at Taxonomy Browser
Comment #11
Gerben Zaagsma commentedThis is not about Taxonomy List but....: I just tried to put this code in the taxonomy.module (core) to get the list of nodes effect, but nothing happens, any ideas? I use the Zen theme..
function taxonomy_term_path($term) {
$vocabulary = taxonomy_vocabulary_load($term->vid);
if ($vocabulary->module != 'taxonomy' && $path = module_invoke($vocabulary->module, 'term_path', $term)) {
return $path;
}
return 'taxonomy_vtn/term/'. $term->tid;
}
For various reasons I cannot do what I want with Tax List and VTN.
Thanks,
Gerben
Comment #12
Gerben Zaagsma commentedOr how could this be implemented in Taxonomy Browser?
The thing is that I use both VTN type lists (users can browse vocabularies) and Taxonomy Browser (allowing users to combine terms from vocabularies). Tax Browser also uses the normal Drupal behaviour when clicking a term which is giving a list of full nodes.
Gerben
Comment #13
chipway commentedHi,
I have looked at Taxonomy Browser, but it is not useable with a lot of Terms. It becomes a mess.
Thank you
Comment #14
nancydru@CwDrup: TB now has collapsible fieldsets to help manage the mess.
@Gerben Zaagsma: the code you posted should be in the Taxonomy VTN module, not core.
Comment #15
summit commentedSubscribing, very interested in tabular list with possibility to change taxonomy/term to an own view based on depth.
I think this is somewhat in the line of this thread, right?
greetings,
Martijn
Comment #16
nancydruFor those who are following this thread, please look at http://lasqueti.ca/marketplace/business and tell me if something along those lines will satisfy you.
Comment #17
nancydru#312250: Wish List for rewrite