Drupal meetup presentation flag, flag weights and draggable views
Post on 14-Dec-2014
2794 Views
Preview:
DESCRIPTION
Transcript
1
Flaghttp://drupal.org/project/flag
Flag Weightshttp://drupal.org/project/flag_weights
DraggableViewshttp://drupal.org/project/draggableviews
2
Introduction to...
So what are they?
Flag: Provides the ability to “mark” a node or user in a list
Flag Weights: Extends Flag to allow marked items to be ordered
DraggableViews: Provides an extension to Views for administering ordered lists
3
FlagsFlag is a flexible system for flagging nodes, comments and users
Flags can be “global” or per-user
Integrates with Views, Token, Rules, Features, Services and Activity
Has an API for extending functionality even further
4
Flag Weights
Flag Weights is a simple extension to the Flags module
It alters each flagged item to have a weight
This allows you to create arbitrary ordered lists of nodes, users and comments
5
Draggable Views
Draggable Views provides a plugin for Views which produces a sortable list of items
The sorting system is the same one used to order Blocks and Terms in the normal Drupal interface
6
Nodequeue?
Anybody heard of Nodequeue? Doesn’t it do the same thing already?
Yes - but only for nodes. And the admin interface is “fixed” to use autocomplete for node titles.
7
Configuringa Flag
Flag comes with a “bookmark” flag by default. This provides a per-user node flag.
Let’s create a new one called sidebar_items.
8
Configuringa Flag
The next form has a whole load of settings, but fortunately they’re all pretty simple.
You’ll need a Title, Flag and Unflag text, enabled Global checkbox, enabled node types and appropriate Display options.
9
Configuringa Flag
And that’s it!
10
Admin View - Page11
Admin View - Attachment12
Other Admin Options
13
Exposed Filters for Node Title, Type, Post Date, etc
More fields on the table for sorting
Imagefield thumbnails
The Admin View14
The Admin View15
So how does it look?
16
Well, how do you want it to look? :-)
Example Result
17
This just shows one way of using Flags, Flag Weights and Draggable
Views.
Any questions?
18
Slides available:http://bit.ly/flag-slides
Photo:http://flic.kr/p/5KrE8c
by “pinprick”
top related