When I include flag field in the view it prints as normal. When I exclude it from the display and then print the field using replacement patterns into a Global: Custom Text, they don't show up.

It prints in the preview but doesn't render when on the page.

This behavior doesn't happen with a regular view, only with the Search API indexed flag.

EDIT: When enabling ajax, they show up after I enter a search term with the exposed filter. But when page is refreshed again, they disappear again.

CommentFileSizeAuthor
#6 flag_in_custom_text.png33.11 KBxsdx

Comments

destinationsound created an issue. See original summary.

destinationsound’s picture

Issue summary: View changes
destinationsound’s picture

Issue summary: View changes
destinationsound’s picture

Issue summary: View changes
destinationsound’s picture

Issue summary: View changes
xsdx’s picture

Status: Active » Closed (cannot reproduce)
StatusFileSize
new33.11 KB

Think this is something custom in your app. I'm attaching a picture in of a view with plain flag field and the one implemented via custom text and replacement patterns implemented. Both are working fine for me. Please check this also on plain drupal installation and try again.

selecta’s picture

Hi @ all, 
I run in to same problem. 
The point is xsdx, i also see in the preview window of views the bookmark link like in your image. 
But on the Rendered output @frontpage the div where the flag loaded is total empty. 
I get this prob. Only in a Indexed search api View, in a normal content view it works even in custom text as replacement pattern.
But in my case where I work with Bootstrap theme and cards it's easier to theme the card as Custom text field with html.
May you can reproduce it
thx