I'm trying to get a Comment Statistics (category) - Updated/commented date field {{ last_updated }}
which is a date formatted field to be visible to everyone including anonymous users.
The view access is set to Permission | View published content. Every field in the view (except for this field) is visible to anonymous users. If a user logs in (the role does not matter) the field information is displayed.
I've tried everything I can think of.
- Installing the views_field_permissions module, setting the permission for that field to role based, and checking all roles including anonymous using the 'or' operator.
- Setting the access to role based with every role including anonymous selected
- Disabling SQL rewriting in the views query settings
- Checking all the related permissions for comments
- Using a global custom text field with some Twig to set my own variable to the last_updated field and printing the variable as the fields output
{% set show_last = last_updated %} {{ show_last }}
(same thing logged in shows, logged out does not)
Nothing! For whatever reason nothing seems to make that specific field type visible unless logged in and I have no idea why. I have another field from the Comment Statistics (category) "Comment Count" field and that one displays fine like all other fields, just not the Comment Statistics "Updated/commented date" field {{ last_updated }}
.
Is this field special in a way it cannot be made visible to a user that isn't logged in?
In the case this matters, I am using Drupal 9.5.9 and PHP 8.1.13.
Edit: adding images that show the problem as displayed by web browser, also includes view and field settings.