Modify Taxomonmy on added and edited items?

winston - September 3, 2007 - 20:30
Project:Editview
Version:5.x-1.0
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

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

#1

challer - September 19, 2007 - 18:30

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

#2

FiNeX - October 1, 2007 - 11:38
Category:support request» feature request

+1
This feature will be very useful!

#3

IceCreamYou - April 8, 2008 - 17:01
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.

#4

dman - April 8, 2008 - 17:24

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.

#5

IceCreamYou - April 9, 2008 - 03:11

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.

#6

dman - April 9, 2008 - 04:07
Status:active» needs review

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

AttachmentSize
editview-taxonomy-freetags.patch 1.42 KB

#7

IceCreamYou - April 9, 2008 - 20:25

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

Thanks very much.

#8

greg.harvey - May 11, 2009 - 16:48
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. =)

#9

IceCreamYou - May 11, 2009 - 19:17
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.

#10

florentin - June 2, 2009 - 16:50

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);
        }
      }

#11

greg.harvey - June 4, 2009 - 08:07

@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! =)

#12

Jorge - June 11, 2009 - 23:25
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

#13

greg.harvey - June 12, 2009 - 09:28
Version:6.x-1.0-beta1» 5.x-1.0

Jorge, you should open a new issue.

 
 

Drupal is a registered trademark of Dries Buytaert.