Demonstration of Flag Classes

This module, to be used with the Flag module, wraps flagged items with useful CSS classes. For example, a bookmarked node will be wrapped with a node-flagged-bookmarks-self.

Features

  • Classes are added and removed dynamically, through JavaScript, when the AJAX flagging links are used. No page refresh is necessary.
  • Rows in views styled as tables (and lists) are also assigned these CSS classes.

Status

This module has just been started (2010-09-29) and it's mostly a copy-paste from the handbook page "How to add CSS classes to nodes, based on flags set". It's in alpha stage. The development is happening on github.com.

Downloading

You can download the module here.

Example

Add the following to your stylesheet:

.node-flagged-bookmarks-self {
  background-color: pink !important;
}

This will paint in pink bookmarked nodes. See the screenshot at the top of this page: nodes at the front page, and rows in a view, are now painted.

Downloads

Project Information


Maintainers for Flag Classes

Issues for Flag Classes

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports