Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I created a views block. I would like to display the block to authenticated users only. When a public users visit the page, I like to display a message like "please login to see the details". Without logging in, public can not see the block.
Block settings field has roles section where I selected the role. Now block displays to authenticated users only as expected and public can not see the block as expected. Only thing is missing to display the message to public asking them to login to view it. How can I do it?
I have a custom entity (Activity) with bundles and taxonomy/user reference fields (they are added directly to the entity table as opposed to separate field tables). When I visit admin/modules or admin/people, all the activity entities cache_entity entries are updated. On the people page, this happens once for every entry (e.g. if I have 2 entries then there are 2 inserts into cache_entity for those entries any time I visit that page...or even when I look at the People view). However on the module listing page, there are over 100 inserts into entity_cache for each entity!
In Drupal8 Commerce 2.x Promotions when we give condition for customer specific user. as of now there are customer role, customer email and customer billing but i need customer user.
Example: when any promotion for specific user based only.