I think that the call to entity_view in token_insert_entity_tokens

$rendered_entity = entity_view($entity_type, array($entity), $view_mode);

should use the optional fourth argument for $page.

This will remove the title and the "links" section of the inserted node. I at least do not want to have them displayed.

I can unset this in a template, but I'd rather not.

Comments

asherry’s picture

This should really be customisable, I don't think a hardcoded page param either way is good. DS and panels address this issue by giving you the option of displaying 'links' or not.

Thoughts?

killes@www.drop.org’s picture

I am fine with making it configurable, even though I can't think of a use case for having this set to FALSE. Others might, though.

johnpitcairn’s picture

Kind of a shortcoming of Drupal 7 in that "manage display" does not include properties like title or links.

Anyway, can't say I agree - I don't think this module should be in the business of configuring what is output by view modes. If you need to modify the view mode output for things like that you can use Title module, Display Suite, or Panels, alter output in theme preprocess/process, modify templates, or even just hide things in css - plenty of options there, surely?

I do have use cases for needing the title displayed BTW.

johnpitcairn’s picture

Category: Bug report » Feature request