Skip to content

jromine/flag

 
 

Repository files navigation

Flag

Flag module allows you to add flags to nodes, users or any other type of entity. The flags can be per-user or global (per-entity).

Possible uses include bookmarks, marking important, friends, or flag as offensive. With extensive views integration, you can create custom lists of popular content or keep tabs on important content.

Description

The Flag module is a flexible flagging system whose primary goal is to give all the control to the administrator. Using this module, the site administrator can provide an arbitrary number of 'flags'.

A flag is really just a boolean toggle that is set on an entity such as a node, comment, or user. Flags may be per-user, meaning that each user can flag an item individually, or global, meaning that the item is either flagged or it is not flagged, and any user who changes that changes it for everyone.

In this way, additional flags (similar to 'published' and 'sticky') can be put on nodes, or other items, and dealt with by the system however the administration likes.

Each flag allows the administrator to choose the 'flag this' text, and the place where the user interface for flagging the item will appear (For example: for nodes, whether a flagging link appears on the node teaser as well on the full node view).

Each flag can be restricted to use only by certain roles. Each flag provides data to the Views module, and provides a default view to list 'My bookmarks'. These default views are somewhat crude, but are easily tailored to whatever the system administrator would like it to do.

Each flag also provides an 'argument' to the Views module that can be used to allow a user to view other people's flagged content. This isn't turned on by default anywhere, though, and the administrator will need to construct a view in order to take advantage of it.

The Flag Bookmark module provides a simple flag called "bookmarks" and a simple view for 'My bookmarks'. This is a default view provided by the Flag module, but can be customized to fit the needs of your site. To customize this view, go to admin/structure/views and find the 'flags_bookmarks' view. Click the 'Add' action to customize the view. Once saved, the new version of the view will be used rather than the one provided by Flag.

Besides editing the default view that comes with the module, Flag provides many views filters, fields, and sort criteria to make all sorts of displays possible relating to the number of times an item has been flagged.

Installation

Configuration

The configuration for Flag is spread between Views configuration and the Flag configuration page. To configure:

  1. Configure the flags for your site at Administer -> Structure -> Flags (/admin/structure/flags)

    You can create and edit flags on this page. Descriptions for the various options are provided below each field on the flag edit form.

  2. Go to the Views building pages at Administer -> Structure -> Views (/admin/structure/views)

    A default view is provided to get you started organizing your flags. You can override the view or use it as a template to control the display of your flags.

Support

If you experience a problem with flag or have a problem, file a request or issue on the flag queue.

DO NOT POST IN THE FORUMS.

Posting in the issue queue is a direct line of communication with the module maintainers.

You may also want to visit the Drupal 7 handbook of this module. The Backdrop handbook is a work in progress.

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

Maintainers

Credits

This module was ported by John Romine from the Drupal module Flag 7.x-3.x.

This module was formerly known as Views Bookmark, which was originally was written by Earl Miles. Flag was written by Nathan Haug and mystery man Mooffie.

Drupal Maintainers:

About

Flag module for Backdrop CMS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 95.4%
  • JavaScript 4.1%
  • CSS 0.5%