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

chipway’s picture

Hi, 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

nancydru’s picture

Have you tried the module's "list" function? Have you looked at Taxonomy Redirect?

chipway’s picture

Thank 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.

nancydru’s picture

Taxonomy 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.

chipway’s picture

Hi 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 ??

nancydru’s picture

Status: Active » Postponed (maintainer needs more info)

It 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.

chipway’s picture

It 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.

nancydru’s picture

Thanks. I was thinking something more like why someone might want to use this -- a use case.

chipway’s picture

Oh,

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

nancydru’s picture

Oh, have you looked at Taxonomy Browser

Gerben Zaagsma’s picture

This 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

Gerben Zaagsma’s picture

Or 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

chipway’s picture

Hi,

I have looked at Taxonomy Browser, but it is not useable with a lot of Terms. It becomes a mess.

Thank you

nancydru’s picture

@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.

summit’s picture

Subscribing, 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

nancydru’s picture

For 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.

nancydru’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)