Display login link for anonymous users - checked
Anonymous link text - filled
Internationalization: both options tried
Display link as field - checked

Nothing appears for anonymous users, only for Authenticated. Of course caches cleared. The only difference with what I've read is that I use a Display Suite layout at Manage Display.

Comments

ggiakoumidakis created an issue. See original summary.

dcooley’s picture

Title: It doesn't working » Anonymous link text not rendered for 'Display link as field'

When I only have 'Display link as field' checked for the display options on a flag, the anonymous text is not rendered.

fra_ore_90’s picture

+1

RgnYLDZ’s picture

+1

usmanjutt84’s picture

+1

usmanjutt84’s picture

Priority: Normal » Critical

  • Antonnavi committed 16e1e75 on 7.x-3.x
    Issue #2846276: Anonymous link text not rendered for 'Display link as...
Antonnavi’s picture

Status: Active » Fixed

This issue was fixed in latest dev branch 7.x-3.x-dev.

usmanjutt84’s picture

I do still not find any settings so I can show the login text for Anonymous user. Would you like to guide me?

Antonnavi’s picture

Hello, usmanjutt84 !

  • Use latest Flag, Flag anonymous and Drupal core
  • Install Flag and Flag anonymous modules
  • Create (or use some existing) node type to test (for example "Article")
  • Create (or edit some existing) flag on /admin/structure/flags page:
    • In "Flag Anonymous settings" section: check "Display login link for anonymous users." checkbox and put some text to "Anonymous link text" field
    • In "Bundles" section check checkbox related to your node type ("Article" in my case)
    • Check "Display link as field" checkbox
    • Scroll down and click "Save flag" button
  • Go to your node type "Manage display" page (in my case Article -> Manage display):
    • I tested message display on node view page
    • Go to "Full content" subtab (if not available - use subtab "Default")
    • There should be field "Flag: [YOUR-FLAG-NAME]"
    • Move this field from "Hidden" section to the top of a list
    • Click "Save" button
  • Visit any node (content type that was choosen by you, in my case it's "Article") page as anonymous user
  • See "Anonymous link text"

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

shevgeny’s picture

Automatically "Flag" entity with clicked flag after successful Login or Registration

— Is it implemented in Drupal 7? It does not work for me. In destination, the address to the page is simply indicated, but I would like that after authorization / registration, the flag is automatically set, how to implement this?