Closed (fixed)
Project:
Display Suite
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 May 2011 at 16:16 UTC
Updated:
2 Aug 2012 at 16:14 UTC
Jump to comment: Most recent file
Comments
Comment #1
swentel commentedFlags come up as soon as the $links variable is placed into a layout, so not sure what else I could do here.
Comment #2
attiks commentedI created a sandbox that exposes flags as fields, for the moment only for nodes.
Comment #3
adamgerthel commentedI found a very old thread recommending putting this in a custom field:
<?php return flag_create_link('favorites', $object->nid); ?>But that doesn't work. Trying to flag something returns:
I'm gonna try your sandbox
Comment #4
swentel commentedWill try to integrate this during the sprint this weekend.
Comment #5
adamgerthel commentedThe sandbox project in #2 works
Comment #6
swentel commentedCommitted this in extras module.
Comment #8
adamgerthel commentedIs the sandbox version the same code that was committed to dev? I just discovered (when using the sandbox module) that it only works when there's just a single content type checked (in the settings screen for that particular flag). If you choose to have the flag available for more than one content type, the field disappears.
Comment #9
attiks commentedComment #10
szantog commented#8 The flag integration is done, moved into separate issue: #1710522: Wrong ui limit settings on flag fields