Wish List for rewrite

NancyDru - September 23, 2008 - 13:00
Project:Taxonomy List
Version:HEAD
Component:Theming
Category:feature request
Priority:normal
Assigned:NancyDru
Status:postponed (maintainer needs more info)
Description

I am currently doing a significant rewrite of this module in response to various issues that have been posted. This is a good time to submit your wish list for the module. I can't guarantee that all of them will make it (especially since I am well into coding already). Please don't suggest something that is well outside the scope of this module.

#1

Summit - September 23, 2008 - 13:16

Hi Nancy,
Am I allowed to touch this module? :)
I think something like: http://lasqueti.ca/marketplace/business would be great.
Also with possibility to set links in user selected columns, hierarchical set up related to term-depth and taxonomy-image support and theming of all this!
With this I think taxononomy List (with optional node listings) can become the listing module!

Greetings,
Martijn

#3

NancyDru - September 23, 2008 - 13:50

@Martijn: I hope you know I was teasing with that comment. You often come up with good ideas ("Real life meets module"™) They just make me work and think (which, for an old blonde, is dangerous).

What I have done so far is to separate the taxonomy data gathering from the theming code. This allows much more flexibility in theming. So I have already added a list theme in addition to the existing table theme. I am getting ready to add the "directory" theme code.

#4

Summit - September 23, 2008 - 14:32

Hi Nancy,
Teasing is that part of real life, or module :)
great! looking forward to test for you.

Greetings,
Martijn

#5

NancyDru - September 23, 2008 - 15:12

I don't suppose you have a 6.x test site yet?

#6

Summit - September 23, 2008 - 15:23

No sorry, only on 5. Panels is not on 6..so :(

#7

ridefree - September 27, 2008 - 20:38

hey nancy,

a few wish list items (or maybe I'm just missing how to do them) ... in case you feel like throwing them in ...
really appreciate all the great taxonomy work you do.

- Multiple Hierarchies - For terms that appear in more than one hierarchy. Currently they add to the total count of that term, but they only get displayed in the first term it is under (and not subsequent ones). It would be great if this was an option to turn on for cases where we need it.

- Hierarchy level - A choice on how far down/or what level in the hierarchy you'de like to display. Ie. Maybe only the first level. Or maybe you want to display the complete set of terms on the second level but not the upper categories. The current case I have is a vocab called podcasts. level 1 is 'channels' like documentary, news, etc. level 2 is podcast names. I have instances where i would like to display one or the other.

that's it for now

#8

NancyDru - September 27, 2008 - 23:56

@ridefree: Drat! I thought I could go longer before someone hit with multiple hierarchy... "Hierarchy level" is something I'm considering, and is actually there in at least the table format (the "max_depth" parameter - it's even in version 1). As for limiting to a particular term, I've thought about that as well, and there is some basic code to prepare for that.

Thanks for the ideas.

#9

ridefree - September 28, 2008 - 01:39

woot!

#10

Summit - September 28, 2008 - 08:32

Hi Nancy,

While being busy with hierarchy, I though about the following:
With hierarchy getting a working block of terms in hierarchy with depth support, and being able to set different words instead of taxonomy/term related to the depth is a wish for me on module level. Because when you can use different words then taxonomy/term you can be able to use different template formats for differtent hierarchy levels.
Thanks a lot in advance for considering!
greetings,
Martijn

#11

NancyDru - September 30, 2008 - 01:51

Ah, the joys of an EO trying to understand a NEN. I'll try to hit anything I think might be applicable here.

The path "taxonomy/term/xxx" is set using the "taxonomy_term_path" function, which may in turn call a hook_term_path. So you could code a small module (or use Taxonomy Redirect) to do this.

There should already be a wrapper div that specifies the depth, so that could be used in your theme.

#12

chipway-drupal - October 7, 2008 - 08:29

Hi,

sorry for this late comment, but i didn't know that the 297064: Does Taxonomy List support translations of Terms by i18n ? was merged here.

i tried TL 2 dev sept 26, but

1) it does not display translated terms.

2) when i choose Directory Format, i get only 2 (vocab1) or 3 (vocab2) top level terms among dozens.

Thank you

#13

chipway-drupal - October 7, 2008 - 09:37

i tried these changes to get back translated terms (sorry but i don't know how we do a patch) :

$term->name ==> t($term->name) on lines :
line 175 : $new_tree[$tid]->title = ''. l(t($term->name), $term_path, array('attributes' => array('id' => $term->tid))) .'';
line 193: 'href' => 'search/node/"'. t($term->name) .'"',
line 201: 'title' => 'name)) .'" />',
line 505: '#title' => check_plain(t($term->name)),
line 540: '#title' => check_plain(t($term->name)),

$term->description ==> t($term->description) on lines :
line 176: $new_tree[$tid]->desc = t($term->description) ? ''. t(check_markup($term->description, $format)) .'' : NULL;

$vocabulary->description ==> t($vocabulary->description) on lines :
line 737: $output .= ''. decode_entities(check_markup(t($vocabulary->description))) .'';

$vocabulary->name ==> t($vocabulary->name) on lines :
line 737: $output .= ''. check_plain(t($vocabulary->name)) .'';

Now i get translated terms with 2 dev sept 26

#14

chipway-drupal - October 7, 2008 - 09:41

Other wish for 2 dev sept 26 = my own view instead of tabular view (i didn't see tabular list = i always get full nodes listed ??).

I would like to define my own custom view instead.

Thank you

#15

NancyDru - October 7, 2008 - 14:22

Thanks for your comments.

The t() function cannot be used like that - http://api.drupal.org/api/function/t/6. It is to be used on text strings, not variables. See Multilingual Taxonomy for the way terms should be translated.

It was my understanding that I was doing what i18ntaxonomy needed to give you what you want. Unfortunately, i18n is rather poorly documented, especially in the API area.

When the custom theming is more complete, I would think your custom function could pass an argument to Views and have data generated, but I don't know Views well enough to know for sure. But you would definitely be able to display data under the terms in any manner you choose. However, I am confused as to why the "directory" format is not what you want.

As for missing terms (and I would really rather that you had opened this as a new issue), do you have the "Hide terms with no content" setting enabled?

#16

chipway-drupal - October 7, 2008 - 14:18

Yes, i have the "Hide terms with no content" setting enabled

sorry for mixing issues.

#17

NancyDru - October 7, 2008 - 14:23

Then that is probably why those vocabularies are not showing all their terms.

#18

chipway-drupal - October 7, 2008 - 14:48

i don't think so because i have plenty of nodes under not showing terms (??).

Thanks

#19

NancyDru - October 7, 2008 - 15:14

Okay, can you, please, open this as a new issue? Also, can you see any kind of pattern? I just committed a fix for another issue that may have fixed this, so please try the new -dev version when it rolls out.

I will be away for the next week, so don't panic if I don't respond right away.

#20

chipway-drupal - October 8, 2008 - 08:15

Hi,

with dev oct 08, all translated terms are lost (displayed in english instead of translation).

Thanks

 
 

Drupal is a registered trademark of Dries Buytaert.