Skip to content

Commit

Permalink
[DOCS] Add note in Mask migration for templates
Browse files Browse the repository at this point in the history
  • Loading branch information
nhovratov committed Nov 30, 2024
1 parent 83e762c commit f2f3f6f
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion Documentation/Migrations/Mask/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,29 @@ Templates
---------

This is the easy part. Simply copy the Mask template into **templates/frontend.html** and
you are done. That said, if you didn't use any partials or layouts. If so, move
you are done `*`. That said, if you didn't use any partials or layouts. If so, move
these to the according **templates/partials** and **templates/layouts** folder in your
Content Block.

.. note::

`*` This is not the whole truth. In some rare cases you need to adapt the
template when migrating to Content Blocks >= 1.0. Most probably usages of
the type `Link` field need adaptions:

.. code-block:: html

<!-- Before -->
<f:if condition="{data.tx_mask_link_field}">
<!-- -->
</f:if>


<!-- After -->
<f:if condition="{data.tx_mask_link_field.url}">
<!-- -->
</f:if>

Icon
----

Expand Down

0 comments on commit f2f3f6f

Please sign in to comment.