Skip to content

Commit 5e39304

Browse files
Simplify global blocks example to ref (#798)
* Simplify global blocks example to ref * Update book/templates.rst --------- Co-authored-by: Prokyonn <[email protected]>
1 parent beb04cc commit 5e39304

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

book/templates.rst

+7-15
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ from within a block.
382382

383383
.. note::
384384

385-
Because the ``&`` character needs to be escaped inside of XML files, you have to use ``AND`` instead of ``&&``
385+
Because the ``&`` character needs to be escaped inside of XML files, you have to use ``AND`` instead of ``&&``
386386
if you want to connect conditions using a logical and. Additionally, you can use ``OR`` instead of ``||``.
387387

388388
Language Independent Properties
@@ -942,23 +942,15 @@ node and the ``ref`` attribute:
942942
<block name="blocks" default-type="text_block" minOccurs="0">
943943
<types>
944944
<type ref="text_block" />
945-
<type name="editor">
946-
<meta>
947-
<title lang="en">Editor</title>
948-
<title lang="de">Editor</title>
949-
</meta>
950-
<properties>
951-
<property name="text_editor" type="text_editor">
952-
<meta>
953-
<title lang="en">Text Editor</title>
954-
<title lang="de">Texteditor</title>
955-
</meta>
956-
</property>
957-
</properties>
958-
</type>
959945
</types>
960946
</block>
961947
948+
.. note::
949+
950+
Mixing global and local block types is supported, but it is recommended to keep your block type names unique
951+
to avoid confusion. This approach also simplifies the transition to global blocks in the future, eliminating the need
952+
for data migrations.
953+
962954
Caching
963955
-------
964956

0 commit comments

Comments
 (0)