Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ creates the following tokens:
[node:paragraph_text:summary:single-line]
```

You probably want to use the second one, which trims newlines.
You probably want to use the second one, which trims newlines.

After installing, import a single configuration for paragraph_node_tokens.settings that looks like the following:
## Before installing the module

Edit the config/install/paragraph_node_tokens.settings with the appropriate machine names:

```
paragraph_fields:
Expand All @@ -29,3 +31,7 @@ fallback_text_fields:
"paragraph_text_types" is the name of the paragraph type that holds a text field
"paragraph_text_fields" Are the fields, attached to the paragraph entity, that are the actual text fields you want to pull token data
"fallback_text_fields" are fields to look at if no text is found in the paragraph field

## To update the module config

Update config/install/paragraph_node_tokens.settings and run a drush config import, which will look similar this this: `drush cim -y --partial --source=modules/contrib/paragraph_node_tokens/config/install/`
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole point of using a settings file is so you can change the settings and then export them with your site config. Site config takes precedence over module config. Instructions should be to use drush config-set and drush config-export.