Closed (fixed)
Project:
Flag Search API
Version:
8.x-1.4
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2019 at 15:13 UTC
Updated:
21 Jan 2020 at 11:49 UTC
Jump to comment: Most recent
Comments
Comment #2
matio89 commentedHi @destinationsound,
This is not related to an issue in the module and I think that is related to missing configurations in your site.
Here are all necessary steps to use flags as content datasource (using Flag Search API) in the view and show content flags depends on the author of the content created:
1/ You should check Reindex Item on Flagged action in /admin/config/search/flag-search-api ( enable flag in Search API).
2/ You should have / create a new flag type ( via /admin/structure/flags/add) and choose content as flag type.
3/ You should go to the your content index (in /admin/config/search/search-api) -> Tab processors, make sure that Flag indexing is checked and Processor settings -> Enable these flags on this index -> make sure that your flag type content is enabled.
4/ You should return back to the Tab Fields of your "content" Index and add field Authored by of the content ( and that's maybe the trick), save changes and reindex your content index.
5/ When you create your page/block view which uses your "content index" as a source, in the contextual filter, you'll find Content datasource: Authored by available -> provide default value, choose User ID from logged in user.
Note that you should not forget to give flag/unflag permissions for roles who can create content and have the possibility to flag and unflag their content. ( and that's maybe also the trick).
Comment #3
tamerzg commentedComment #4
ws.agency commentedComment #5
ws.agency commented