Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
taxonomy data
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
7 Dec 2010 at 11:50 UTC
Updated:
25 Jul 2012 at 19:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
slashrsm commentedWhich version of Views do you use? CVS HEAD? Which version of D7 core do you use?
Comment #2
cnolle commentedThis happens using Views latest dev and Drupal 7 RC1
Comment #3
Ryan Martin commentedCan replicate with RC1 views 7.x-3.x-dev
Comment #4
Jarode commentedI experience exactly the same issue when I activate the default view taxonomy_term. It's highly reproductible.
Drupal 7 RC-1
Views 7.x-3.x-dev
Comment #5
slashrsm commentedComment #6
dawehnerCan you describe step by step how to reproduce the problem?
Comment #7
cnolle commentedAdd some fields to your vocabulary, my site has one image field and two text fields. Without the taxonomy/term view enabled the fields show up when you view the taxonomy/term page. However, if you enable the taxonomy/term view the fields disappear.
I get the following error as well:
Notice: Trying to get property of non-object in taxonomy_term_edit_access() (line 373 of /modules/taxonomy/taxonomy.module).
Comment #8
dawehnerDid you changed your taxonom/term view?
The view has row style node, so the terms are listed as links. So what's the reason the additional field to the term should be displayed.
Some screenshots might help. I can't reproduce it.
Comment #9
cnolle commentedI haven't changed the default taxonomy/view - I just enabled the default view.
Please see attached screenshots. This is using the lates dev of D7 and View 3. No other modules is installed.
To reproduce I did the following:
1. I created a new vocabulary called organizations.
2. In this new vocubulary I created two fields (both Long text and summary).
3. I created a new term in the vocabulary and filled the two text fiels with lorem ipsum.
4. Created a new field in the article content type which would reference this vocabulary.
5. Create a new article assign it to the term I just created.
If you view the taxonomy/term page without the view enabled all is well. The two fields appear at the top of the taxonomy/term page with a teaser of the article appearing below.
If you enabled the default taxonomy/term view the fields disappear and all that remains is the article teaser.
Comment #10
cnolle commentedHere's some annotated screenshots.
Comment #11
dawehneraaaaaaaaaaaaaaah.
But this will be a bit disapointing.
Views is a tool to build lists of items, here nodes.
So there will be no automatically build lists of items AND load the term and show the term.
But since views 3.x, it's possible to write a area handler which prints the stuff you want.
Maybe it would be even possible to be included in views: A area handler which renders a single entity in the header, based on manual settings or based on argument. You could create a new issue for this.
Comment #12
cnolle commentedI was thinking something along those lines. Logically you should somehow be able to add the term fields to the header view - or footer for that matter (like you can at the moment with global text area). That would make sense and give everyone granular control over where those term fields appear in taxonomy/term view.
Comment #14
tkcent commentedYou can use hook_view_pre_render() in your template.php file to alter many parts of the view including title, header or footer as shown below.
Example: