Skip to content

Commit

Permalink
TASK: Add nodeTemplate:createFromNodeSubtree to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Jun 1, 2023
1 parent bce5c7d commit 4670035
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ under the path "options.template".

1. `composer require flowpack/nodetemplates`
2. Add templates to your nodetypes configuration in NodeTypes.yaml, as described in the examples below
3. Use the new React UI
3. Or use the command to dump the template based on your workspace

## Hello world

Expand Down Expand Up @@ -145,7 +145,19 @@ The node creation depth can be configured via Settings.yaml with `nodeCreationDe
Flowpack:
NodeTemplates:
nodeCreationDepth: 10
```
```

## Create template from node subtree

When creating a more complex node template (to create multiple pages and content elements) it can be helpful to take the current node subtree from your workspace as reference.
For this case you can use the command:

```sh
flow nodeTemplate:createFromNodeSubtree <nodeIdentifier>
```

It will give you the output similar to the example above.
References to Nodes and non-primitive property values are commented out in the YAML.

## More examples

Expand Down

0 comments on commit 4670035

Please sign in to comment.