Gallery Remote Protocol: add tags

knitterb

Joined: 2003-11-28
Posts: 33
Posted: Tue, 2009-02-24 05:16

Does anyone know what the status on add tag support to the "extrafields" data set? I'd like to make my GalleryRemote application be able to set tags (not keywords as I believe that's going away).

If the work hasn't been completed for this, does anyone have any pointers?

Thanks!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2009-02-24 13:04
 
knitterb

Joined: 2003-11-28
Posts: 33
Posted: Tue, 2009-02-24 16:04

I'm not sure what DP is, but I'm not asking about the tags module itself, but the addition of tags via the Gallery Remote Protocol.

GR Protocol: http://codex.gallery2.org/Gallery_Remote:Protocol

This is the protocol that things like Gallery Remote use to manipulate images in albums. Specifically the add-item command will add items and allow you to add things like a caption, summary and description; but there is no functionality for adding keywords (deprecated) or tags to a new uploaded item.

If no one has done the work for this, I can look into how to do this if you'd like? I'm not really sure where to start cause I'm not familiar with how to check and call modules programmatically, but I'm sure I can figure it out.

Thanks!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2009-02-24 17:19

Well, tags are not available unless the module is installed and active. Keywords on the other hand are always available, and I don't think they will go away as work other then security fixes is done on G2.

    /* Check to see if a module is available */
    function pluginCheck($plugin){
	global $gallery;
	list ($ret, $modules) = GalleryCoreApi::fetchPluginStatus('module');
	if ($ret) {
	    print "checking plugin:". $plugin . " - " . $ret->getAsHtml();
	}
	return ($modules[$plugin]['active'] && $modules[$plugin]['available']);
    }

Oh, and DP is downloadable plugins in your gallery's admin.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
knitterb

Joined: 2003-11-28
Posts: 33
Posted: Tue, 2009-02-24 17:24

Thanks for the code snippet. That makes sense.

I remember seeing a post by valiant which specifically said that Keywords would be going away in favor of the Tags module. Either way, you make a good point about G2 being code complete. I'll wait for G3 to come out and then revisit the tags/keywords topic then.

Thanks again for the help and insight!