Questions tagged [flags]

Use it for the module implementing a flexible flagging system, completely customizable by the administrator users: the Flag module.

Filter by
Sorted by
Tagged with
1
vote
2answers
31 views

How to prevent certain users from adding (for example, a Node) to bookmarks with Flag Module

Flag Module >>> https://www.drupal.org/project/flag How to disable/prevent some Users (NOT Roles) from adding (for example a Node) to bookmarks? Maybe showing a message after clicking on the Boomark ...
0
votes
0answers
10 views

Show all values from multivalued flag in one line in Views

I'm very new to drupal (~3 months). I'm creating a PSU site to manage project proposals. One of the pages I'm creating allows the user to view the submitted project proposal, flag/unflag as interest (...
0
votes
0answers
20 views

Flags are only temporary?

I have a feed that imports content items and a view that selects three of them for a block on the site front page (links are on the node to set flags). But when I turn off my localhost test site and ...
0
votes
1answer
81 views

How to print in twig a Flag Link field

I have a views-view-unformatted.html.twig template working fine where I can print fields from a view of nodes. Example: having i = 3, print row number 3 title {{ rows[i]['content']['#row']._entity....
0
votes
0answers
12 views

Entity Reference selection: Nodes by Author available to flagged Group

I've looked at both Organic Groups and Groups and they don't quite work for me, so I'm trying to do my own thing. Here's the setup... Contributor (user type) requested/invited to Group (content type)...
2
votes
1answer
33 views

How to exclude views fields from display when a node is flagged

We use the flag module to mark items that will have delays in shipping so that the customer knows that those items will be delayed before adding them to cart. In drupal 7, we excluded our "add to cart"...
0
votes
0answers
11 views

How can I allow only one flag per matching field value within a view?

I have a view that allows users to flag nodes directly through the view, I'd like to limit it so that can only flag one item per category at a time. For example: VIEW Category 1 Node A ...
0
votes
0answers
37 views

How to add a token with the flag to the Message module?

I have a site on Drupal 8 with the Message, Flag and Token modules. I created a custom module to create a message when an entity is created on the site. I also created a flag to mark messages as ...
0
votes
0answers
33 views

How do I programmatically get the flag creation time?

I need to get the creation time for a flag on a node. I started with the following code, but I probably need to use getEntityFlaggings() passing the node and the flag ID. $flag_service = \Drupal::...
0
votes
0answers
25 views

Flag/Unflag Taxonomy term when updating Taxonomy field in user profile

I asked this question a few days ago: Send email to all users that are tagged with the same tag a node is when created I decided to go a different route and use the flag and rules module to associate ...
0
votes
0answers
33 views

How to limit flagging in drupal 8?

Node compare is awesome plugin but it's just only in D7. I'm using Drupal 8. I have a views page which integrated with flag(compare it) and flipped table module to compare contents. It has limit to ...
1
vote
1answer
221 views

How can I get flag count of a flag?

I see extensive Drupal 7 documentation for the Flags module, but very little for Drupal 8. I have a Signup flag on a Drupal 8 node (which is an event). I need to suppress the Signup link when a ...
1
vote
1answer
315 views

How to change the labels TRUE and FALSE of a boolean field in views exposed filter

I am using the flag module to toggle a node type 'Task' as Done. I made a view that lists the tasks, and added a views exposed filter for the flag status, which is a boolean field. In this way users ...
0
votes
0answers
32 views

Get the field for a value of a “List (integer)” field using entity_load()

I am trying to get the label for a value of a List (integer) field using entity_load(). With the code I am using, I'm able to get the field key with $flagging->field_form_status['und'][0]['value'],...
1
vote
1answer
15 views

Node is flagged, node author comes back to the site, how to show how many new flags since last visit?

I created a "new activity feed" view page in which a user can see how many new comments have been posted to his own nodes since his last visit Eg : since you last last visit : - 21 new comments have ...
-4
votes
2answers
130 views

How to redirect user to login page when anonymous user click on the flag link?

Redirect user to login page when anonymous user click on the flag link. How to achive this? I have created flag links by function MYMODULE_preprocess_node(&$variables) { $node = $variables['...
0
votes
1answer
32 views

Disabling node editing after first node flagging

I use flagging for signing petitions. Petitions should be editable until the first signing (flagging) is done. Now I look for a solution to disable node edition after first signing. My first thought ...
2
votes
2answers
99 views

Is there a way to add non indexed fields to a search api view?

I’m wondering if it’s possible to add non-indexed fields to a search API indexed view? I want the standard flags fields to be available on the indexed search view. And I was thinking I could do this ...
0
votes
0answers
67 views

Rules, Flags, Follower and New Content Notification

I am trying to setup a couple of rules. So far I have messed with rules some but since I am new, haven't had any success. This is what I am trying to achieve. Have created a user flag called FOLLOW. ...
2
votes
1answer
236 views

View, flag, and followers

I have a user flag that is called "follow" and am trying to setup the following views in Drupal 8. I want to create 3 views for my website's user profile pages: A list of users flagged by a user (...
0
votes
1answer
200 views

Token for Total Flag Count

I have created a flag for my comments named HELPFUL. If users find a comment helpful they vote it as such. The challenge that I have is how do I show the total votes for the flag next to the button? ...
0
votes
0answers
173 views

Flag count is incrementing only after page reload

I have a views with like and unlike flag. When I click on like flag the count not increments. But when I reload the page, then only like's count will change. How can I solve this issue? Note: I have ...
1
vote
1answer
129 views

How to show users who have not flagged a node with any flag?

Drupal 7. I have a content type that can be flagged with 3 different flags. I need to display a view of users who have not flagged any of them. The users that are allowed to flag are listed in an ...
2
votes
1answer
33 views

How to stop users from flagging other users if they have a custom taxonomy term?

I'm working on a project where users vote other users using the Flag module. Each user has a department term reference field. I would like to stop a user from flagging another user if they have the ...
1
vote
1answer
148 views

How to redirect user to an url when node is flagged?

My problem is related to the Drupal 8 versions of these two modules: rules and flag. What I want to achieve Some node types on my site are offering a global flag as a link (for e.g. "report error" ...
1
vote
2answers
499 views

How to use the flag counter in a twig template of a node?

The version dev of the module "Flag" for "Drupal 8" has added a new sub module "Flag Count": https://www.drupal.org/project/flag/issues/2708291 I copied the code {% set count = '[' ~ flagcount(flag,...
0
votes
1answer
18 views

Error when trying to delete user

I installed the heartbeat module to track user activities on my website. It took me hours to configure it but everything seemed to be working as I wanted until I tried to delete a test user from the ...
0
votes
1answer
33 views

Showing flagged content to users

I have flagged contents in a block.But only admin can see the these flagged contents(contents are product variations).I want to show these contents to all authenticated users and anonymous users.Is it ...
0
votes
1answer
45 views

list users informations who flagged an entityform with views

I'm using drupal 7 with entityform, views, rules All is in the title, i need to list some profils fields (name, mail etc..) of users who flagged an entityform. Exemple : User X send an entityform. ...
1
vote
1answer
76 views

How to create a rule to flag users when they're approved as a Trusted Contact?

I need some help with Drupal Commons (7.x-3.46), Trusted Contacts (one of its modules), and Rules. I need to create a rule so that whenever a user is approved as a trusted contact, the user is also ...
0
votes
2answers
40 views

Ability to flag each uploaded image separately after doing multiupload

I want to create some kind of photography website where users will be able to flag some images for later use. This is the user story: Photographer upload images of the client event on the website ...
0
votes
1answer
235 views

Drupal 8: Build “visitor history” using Flag/Rules

I need to build a history for visitors so they can see which pages they've visited (ideally filtered by type). To do this, it seems that the correct combo is to use Flag module and then Rules. I'd ...
1
vote
1answer
26 views

Allow a user to manage his/her own users and be able to assign roles

I need to give access to a specific user with a specific role to be able to give the user role but not the administrator My case is that the website I'm building needs different kinds of admins and ...
0
votes
1answer
49 views

Rules Flag Count

I have added a flag [FOLLOW] that allows users to follow each other. Using Display Suite, I am trying to add a token field that will count total number a FOLLOWS a user has received. From what I can ...
0
votes
1answer
56 views

In a view how to replace the date of creation of the comment by the date of the flag?

I created a "like" flag on the nodes. I created a view that displays the comments. I want my view to show only comments posted since the flag date. The solution will be to create a filter criteria ...
0
votes
1answer
34 views

Replace the date of a filtering criterion with “Views PHP”?

I created a "like" flag on the nodes. I created a comment view. I want my view to show only comments posted since the flag date. The solution will be to create a filter criteria with the filter "...
0
votes
2answers
65 views

Exposing a type of field operation (flag lists) for search index view

I installed the flag list operations module which gives me the ability to do operations on my views results. But this flag list operations doesn't show up on my search index view as seen below. I'm ...
2
votes
2answers
47 views

Flag : access, context, role

I have a site where members (with different roles) can post projects. My goal : To show to "recruiters" (role) a view of all the users who have flagged their nodes. In other words, the flag ...
0
votes
1answer
163 views

How can I hide a node flag using twig

I want to hide the flag on a node if a boolean field is unchecked. My Code in node.html.twig {% if node.field_registration_status.value == 0 %} <div class="registration-closed"> {{ ...
1
vote
1answer
45 views

How to eMail a periodic summary of flagged nodes to users of some role?

I'd like to create a periodic summary email that gets sent to a specific role. The summary email would include things such as: flagged content / users count new users count new nodes most viewed ...
1
vote
1answer
35 views

How to add a flag link to a view that contains only fields with relationships

Normally one would add a flag link as field in a view, in order to be able to flag an entity of a views row. However, I cannot add a flag link to a view that only shows entities using a relationship, ...
0
votes
1answer
628 views

Can't get Flagging API to accept POST request

trying to use the REST API that comes with the flagging module on Drupal 8. I've enabled and secured the endpoint that comes with the module: /entity/flagging: POST I'm nearly there, but following ...
2
votes
1answer
139 views

Flags: flagging unflagging rules, how to check if an user has already flagged a node?

I'm using Drupal 7 and I created 3 flags for article content type; these flags are global flags: bad, nice and cool. Now, I want create a rule in order to check if an user has already flagged an ...
2
votes
1answer
32 views

How can I automatically assign users to a node based on a taxonomy?

I've Googled this but might just not be using the right search phrases. I'm building an RFP repository for my company. Each RFP question will have a Category assigned to it. Within Drupal, I'd like to:...
0
votes
0answers
39 views

Show view result of both flagged users and the flagging user

I have a views listing the user profile of the users I have flagged by adding a relationship flag, and user profile. Then adding a contextual filter uid for the current user. I want the view to also ...
0
votes
1answer
87 views

How do I programmatically set up multiple default flags?

How do I programmatically set up multiple default flags? The documentation shows how to create a single flag using mymodule_flag_default_flags(). If I need two or three default flags for my custom ...
1
vote
2answers
52 views

Subscribe flag to auto-subscribe authors

I have set up a flag so that users can flag certain types of nodes and receive an email notification if there is any activity on it, such as comments. It's paired with the answers module. What I can't ...
3
votes
1answer
75 views

How to use “replacement tokens” created for a Message type in Views?

In my case a user with the role ("team member") flags a node created by normal user. I want to display "@team member_id flagged @node_id created by @user_id". Maybe later on I would like to add ...
3
votes
1answer
65 views

How can I track all Flagging/Unflagging history for statistics?

Is there any way to track the flag/unflagging of a node/user without the Heartbeat module? Or a way to track all user/node interaction to use it after for statistics?
1
vote
1answer
107 views

How to set a flag at node when user view node?

I have a content type 'page'. When a user views this node, I want a flag to be set automatically not by flage module link. Any help?