I have created a gallery view with teaser image and title that links to gallery. In the views access I have used permission | access protected node password form. When I go to view the views page I only see the title which I believe is expected behavior. How can I display the teaser image as well?

Comments

Road Kill created an issue. See original summary.

grimreaper’s picture

Hello,

The description of your use case and configuration is not clear at all.

I suppose you use a view that display content using a particular View mode (protected_node does not protect field, only when the content is rendered using view modes).

By default when a node is protected, only the title is displayed, see protected_node_protected_node_hide().

You can also use this hook in a custom module to display your image. The usage of hook_protected_node_hide is to hide information before rendering but you can use it to add some if you want.

Road Kill’s picture

Hi Grimreaper thank you for the but unfortunately my coding skills are very weak. It would be great to see a feature in the future that will allow specific fields to be excluded. As in my use case I have created private galleries and need not only to show the title but a teaser thumb image as well.

Thank you again for your help.

Road Kill’s picture

Status: Active » Closed (works as designed)