This module provides a token that creates a summary from the content of a paragraphs field. It finds the first long text field within the paragraphs to use as the summary, even supporting nested paragraphs, making it useful for generating meta descriptions or other content summaries.
The Paragraphs Summary Token module is a helper module that provides a token which builds a summary of the given paragraphs field. This token can be used as e.g. metatag description for entities that use paragraphs to build the content.
How it works
This module loops over all paragraphs referenced in the given field and checks if there is a field of the type "text_long". The first result will be used to make the summary. This module also works with nested paragraphs.
Configuration
To use this module, there is no extra configuration needed. When you create a
paragraphs field e.g. field_paragraphs, on a content type of your choice, this
module will create a new token [node:field_paragraphs:summary].