Skip to main content
added 432 characters in body
Source Link
Mołot
  • 21.9k
  • 8
  • 59
  • 112

You can simply use Field Permissions module:

Author-level permissions allow viewing and editing of fields based on who the entity owner is.

This seems to be exactly what you need.

To have real field (not display suite element), you can use Computed Field - more complicated than Display Suite, true, but at the same time more versatile and integrates well with everything field-related.

On the other hand, you can forget all these modules, and in your node.tpl.php simply compare current user id with node author's id, and if they are equal, print your data.

You can simply use Field Permissions module:

Author-level permissions allow viewing and editing of fields based on who the entity owner is.

This seems to be exactly what you need.

You can simply use Field Permissions module:

Author-level permissions allow viewing and editing of fields based on who the entity owner is.

This seems to be exactly what you need.

To have real field (not display suite element), you can use Computed Field - more complicated than Display Suite, true, but at the same time more versatile and integrates well with everything field-related.

On the other hand, you can forget all these modules, and in your node.tpl.php simply compare current user id with node author's id, and if they are equal, print your data.

Source Link
Mołot
  • 21.9k
  • 8
  • 59
  • 112

You can simply use Field Permissions module:

Author-level permissions allow viewing and editing of fields based on who the entity owner is.

This seems to be exactly what you need.