Skip to content

Commit 7d58fce

Browse files
authored
Document component forking shortcut
1 parent 9d2a47a commit 7d58fce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: cms/components.md

+2
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ url = "blog/post"
136136

137137
The output will be rendered from the plugin directory **components/blogpost/default.htm**. You can copy all the markup from this file and paste it directly in the page or to a new partial, called **blog-post.htm** for example.
138138

139+
>**NOTE:** If you are using the CMS editor in the backend, you can automatically copy the contents of the default partial by holding down the modifier key (Ctrl on Windows, Cmd on MacOS) and double-clicking the `{% component 'myComponent' %} tag in the code editor. You can also trigger the same behaviour by clicking on the "Fork" icon in the bottom right of the code editor when the component tag is selected.
140+
139141
```twig
140142
<h1>{{ __SELF__.post.title }}</h1>
141143
<p>{{ __SELF__.post.description }}</p>

0 commit comments

Comments
 (0)