Path

ez projects / ntags / forum / general / tagging images during oe up...


Tagging images during OE upload

You need to be logged in to post messages in the forums. New users may register here.

André R

Member since:
20 August 2005

Posts: 171

Tuesday 07 July 2009 10:53:30 am

Good idea, here is a patch for the upload.php view to support ezkeyword datatypes:



Index: ezoe/modules/ezoe/upload.php


===================================================================


--- ezoe/modules/ezoe/upload.php        (revision 33)


+++ ezoe/modules/ezoe/upload.php        (working copy)


@@ -145,6 +145,10 @@


                        $content->setAttribute( 'alternative_text', trim( $http->postVariable( $base ) ) );


                        $content->store();


                        break;


+                   case 'ezkeyword':


+                       $newObjectDataMap[$key]->fromString( $http->postVariable( $base ) );


+                       $newObjectDataMap[$key]->store();


+                       break;


                    case 'ezxmltext':


                        $text = trim( $http->postVariable( $base ) );


                        include_once( 'extension/ezoe/ezxmltext/handlers/input/ezoeinputparser.php' );




The next thing you'll need is to override templates/ezoe/upload_images.tpl ( look for ContentObjectAttribute_caption, and add ContentObjectAttribute_tags for keywords ).

This patch++ might show up in ezoe/trunk quite soon..

UPDATE: done http://issues.ez.no/IssueView.php?Id=15139&activeItem=1

--
ar

Up

Leif Arne Storset

Member since:
09 January 2008

Posts: 6

Tuesday 21 July 2009 12:40:55 am

Awesome! Thanks for the prompt enhancement. I guess we can all look forward to version 5.0! :)

Leif Arne Storset

Up

You need to be logged in to post messages in the forums. New users may register here.