I may be missing something. I don't see any way to make it so that when I add a new node using an Editview View I don't see anyway to specify taxonomy terms. Most is default, but there is one vocabulary that the user would need to select a term.

Unfortunately, without this it isn't too useful for my case as I would have to have the user go back and update all the items with the correct taxonomy later anyway.

Thanks for the help.

Peter

CommentFileSizeAuthor
#6 editview-taxonomy-freetags.patch1.42 KBdman
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

challer’s picture

+1. I'd need this too. Love this module, but won't be able to use it without support for taxonomies.
Chris

FiNeX’s picture

Category: support » feature

+1
This feature will be very useful!

IceCreamYou’s picture

Version: 5.x-0.1 » 5.x-0.3

Looks like it supports taxononomies that aren't free-tagging ones. The functionality can be duplicated by using CCK fields instead of taxonomies.

dman’s picture

It's just a rendering problem. The data is there but is named differently from expected in the array. I got a patch that fixed it up the other day.
I'll see if I can post it up later.

IceCreamYou’s picture

That would be wonderful. Tomorrow's my birthday, so it will feel good to finally get this complete.

As a side note, the current form.inc patch produced WSODs for me and I had to roll back. I applied the patch manually and only tried it once though so it's entirely possible I just screwed it up.

dman’s picture

Status: Active » Needs review
FileSize
1.42 KB

Here it is.
Also includes a more descriptive class for theming and consistant cell alignment.
(I'm patching blind here, on a new site that needs it, but isn't configured to be using it yet.)

IceCreamYou’s picture

I haven't tested the patch very extensively but it seems to work on D5.7, PHP5.2, MySQL and Apache.

Thanks very much.

greg.harvey’s picture

Version: 5.x-0.3 » 6.x-1.x-dev
Status: Needs review » Active

If #6 works for D5, anyone mind if this moves to an active D6 issue? Core feature requests work from the top down anyway. =)

IceCreamYou’s picture

Version: 6.x-1.x-dev » 5.x-1.0
Status: Active » Needs work

As long as the patch is for D5 and it remains uncommitted, it should stay a D5 issue. If someone writes a patch for D6, then this will become a D6 issue.

Setting to "needs work" because presumably the patch won't apply to the newest 5.x release even though it worked on 5.x-0.3.

florentin’s picture

Taxonomy terms do not show up in editview 6.x-1.0-beta1

A quick a dirty hack is to place this code

elseif ($field->field=='tid') {
  $element['data'] = drupal_render($form['taxonomy']);
}

before this

else {
        // If the field is a cck field, send through the right identifier.

in editview/theme/editview.theme.inc (around line 124)

This is how it looks like in my file:

if (isset($field->table_alias) && is_numeric($vocab_id = str_replace('term_node_', '', $field->table_alias))) {
        $element['data'] = drupal_render($form['taxonomy'][$vocab_id]);
      }
      elseif ($field->field=='tid') {
      	$element['data'] = drupal_render($form['taxonomy']);
      }
      else {
        // If the field is a cck field, send through the right identifier.
        if (isset($field->content_field)) {
          $element['data'] = _editview_form_field($form, $field->content_field['field_name']);
        }
        else {
          $element['data'] = _editview_form_field($form, $field->field);
        }
      }
greg.harvey’s picture

@florentin, you posted in the wrong place (see #460206: Doesn't allow taxonomy edits) but your "quick and dirty" fix works beautifully! Thanks for sharing! =)

Jorge-2’s picture

Version: 5.x-1.0 » 6.x-1.0-beta1

Hi florentin,
Thanks for your solution. I'm looking something similar to use taxonomy images with editview. I use editview to show a list of task and it would be wonderful to show an imagen for the status of this task (I use taxonomy image to do this).
Please, let me know if you have any idea for this.

Many thansk in advance,
Jorge

greg.harvey’s picture

Version: 6.x-1.0-beta1 » 5.x-1.0

Jorge, you should open a new issue.

Anonymous’s picture

The solution in post #10 works as long as you don't try to select more than one term. Otherwise on saving the content being edited I get the error:

warning: array_shift() [function.array-shift]: The argument should be an array in /home/****/public_html/sites/all/modules/editview/includes/editview.views.inc on line 76.

It makes sense that more than one term would need to be an array. I don't know enough about Drupal modules to know how to fix it though.

Frodo Looijaard’s picture

Status: Needs work » Fixed

This is now fixed in the 6.x branch. It will very probably never be fixed for 5.x. Thanks for your patches, but the current one can not be applied safely.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.