Token insert entity, field formatters, and entity view modes Oh Mai!

I wasn’t sure how to describe this approach so I felt the title above was maybe eye catching enough to get people to check it out.  Here are the modules showcased all playing nicely together to produce a unique content contributor workflow for complex elements in a node.

Effectively, through the use of tokens and “view modes” you will be able to embed parts of content into other content to utilize contrib’s vast display and field formatters to produce high quality content without limitting people to the use of fields and ridgid content type design.  Instead of downloading everything I’ve included a make file that’ll give you the dependencies you need to play with this (there are a ton).

Here are the modules you need to do this:

  • https://drupal.org/project/entity_view_mode – to generate new custom display modes
  • https://drupal.org/project/token_filter - to process the tokens
  • https://drupal.org/project/token_insert - to insert via wysiwyg editor
  • https://drupal.org/project/token_insert_entity – to handle view mode embedding
  • https://drupal.org/project/exclude_node_title – to remove the title from view modes being rendered

Here are the ones that I show as examples of complex display types using the formula provided above

  • https://drupal.org/project/tablefield – table with easy support for import from csv as well as download back to csv
  • https://drupal.org/project/textformatter – format things as a bulletted list
  • https://drupal.org/project/field_collection
  • https://drupal.org/project/field_collection_tabs – tab based page element
  • https://drupal.org/project/field_collection_table – different type of table format from the tablefield
  • https://drupal.org/project/field_collection_fieldset – collapsible fieldset page elements

I need to do futher testing but https://drupal.org/project/custom_formatters should plug into this approach nicely as well.  I’m still just playing with this approach but look for it to be included as an optional feature in the MOOC Distribution.