Gallery3:Modules:tag by group - Gallery Codex
Personal tools

Gallery3:Modules:tag by group

From Gallery Codex

Tag by group

Allows the admin to choose a group that will be able to tag items even if they don't have permissions to edit the item.

Description

Once the admin has chosen a group that can add tags to items a new menu option will be available to those members, when viewing a album, to edit tags of items in that album.
There is also a sidebar block, that is available to those group members, to add tags when viewing a item.

  • If the user has permissions to edit the album or items then these options are not available.
  • Editing items and albums for those users with permissions will not see the block as they will be able to use the tag cloud interface or the edit item dialog.
  • The module was designed for users that don't have permissions to edit the album but allow them to add tags to items.
  • Setting (on/off) for displaying a link in the menu to tag items in album.


Tweak: If you want the thumbnails to be larger, edit the views/tag_by_group_dialog.html.php as follows:

1. Add this: .g-caption-resize { height: auto; width: 100%; } to the top of the file between the <style type="text/css"> </style> tags at the top of the file.

2. In this line: <td style="width: 210px"> change the width to what you would like it to be.

3. Change this line: <?= $child->thumb_img(array(), 200, true) ?> to this: <?= $child->thumb_img(array("class" => "g-caption-resize")) ?>

Screen shots

Admin tag by group settings.png

Installation

  • The tag module is required fist prior to install.

This module may be downloaded from the codex here.

To install, extract the "tag_by_group" folder from the zip file into your Gallery 3 modules folder.
Afterwards log into your Gallery web site as an administrator and activate the module in the Admin -> Modules menu.

Configure the module: Settings -> Tag by group page. Select the group to be able to tag items. Choose whether to show a "Tag Items" on the top menu. This will affect both users and admin views. Save

Notes

For the selected group, a menu option will appear in the sidebar.

  • In Album View: Tag multiple photos in one screen.
  • In Photo View: Tag individual photos.
  • Tagging of albums was intentionally left out.

Discussion

http://galleryproject.org/node/105828