Closed (won't fix)
Project:
Taxonomy context
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
21 May 2006 at 21:15 UTC
Updated:
16 Jan 2007 at 18:56 UTC
Jump to comment: Most recent file
Comments
Comment #1
nedjoYes please!
Comment #2
fgmI've committed version 1.43.2.4, which includes a fairly large set of changes to the code. It doesn't solve the entire issue, but is there for testing.
This version removes the recursion in block building, obsoletes two "*show*" functions and replaces them by cleanly separated data generation and themeing functions, and also removes some dead code.
Functionality should be unchanged.
I'll continue working on it to apply the same changes to taxonomy_context_show_term and taxonomy_context_show_subterm.
Please comment on new version.
Comment #3
fgmAdditional warning: testing on a large site evidenced some errors that weren't apparent on a smaller one, notably with multiple vocabularies.
Also, there's some improper li/ul nesting being created in some cases. By all means don't use version 1.43.2.4 on a live site.
You can apply this patch on top of 1.43.2.4 to fix the issue with multiple vocabularies.
Comment #4
fgmVersion 1.43.2.5 now
taxonomy_context_menu(use ofcallback_argumentsinstead ofcallback arguments)taxonomy/vocabulary/[vid]/[edit]Comment #5
exhuma commentedAlright. I see I have the latest version (including fgm's patch). But how do you actually go about theming this modlue?
I have the problem that there is way too much whitespace in between subterms. I don't have any description for the terms, so that block is essentially not needed.
I would myself like to theme it in a way that it simply creates an unordered list of the subterms. Is that possible?
Comment #6
fgmIf you have the latest version and my patches, you have 6 themeable functions in taxonomy_context:
theme_taxonomy_context_children_list: used to display the site tree below a given tidtheme_taxonomy_context_nodes: used to display a themed set of LI link elements (without the list wrapper: UL, OL), below a given tidtheme_taxonomy_context_term: used to obtain the themed DIV for a term or subtermtheme_taxonomy_context_vocabulary: used to display a themed vocabulary descriptiontheme_taxonomy_context_vocabulary_list: used to display a themed list of the terms in a vocabularytheme_taxonomy_context_vocabulary_page: used to display a themed vocabulary pageI'm not sure what you're trying to achieve: it seems to relate to the first of the functions above. When you want to override it in your theme, you can obtain the context from
taxonomy_context_get_contextand the full tree_taxonomy_context_build_tree. You'll then choose in your code what you want to display from these data. By defaulttheme_taxonomy_context_children_listdisplays all the terms below the tid, but you may want to reduce the quantity of information.Comment #7
fgmExhuma, you apparently used the theme since late july. Did you notice specific issues (your drupal.org account is set no to receive emails) ?
Apparently other users are worried by all the changes introduced with this patch, but no one reviewed it since your last question.
Comment #8
nedjoThis direction, while promising, was rolled back due to various problems.