From 1c6385307a3cf084caeb62f76348b8af4ba2b83d Mon Sep 17 00:00:00 2001 From: Andrew Keller Date: Tue, 16 Apr 2019 16:09:15 -0400 Subject: [PATCH] update readme with direction on editing the .settings and updating the config --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 39feb2a..a61733d 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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/` \ No newline at end of file