Skip to content

Commit

Permalink
eZ Publish -> eZ Platform
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Sep 22, 2017
1 parent 5cfe581 commit 5cd083a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ezplatform/custom_preview_template.rst
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Custom preview template for eZ content types
============================================

Implementing custom preview templates for eZ Publish content types is as easy as
adding a new eZ view type in your content view configuration.
Implementing custom preview templates for eZ Platform content types is as easy
as adding a new eZ view type in your content view configuration.

For every content type you wish to add the preview for, you need to define an
override template for ``ngcb_preview`` view type, which will then automatically
be used by the Content Browser to display the preview.

For example, to add the preview for your custom content type with identifier
``my_content_type``, add the following config to your eZ Publish:
``my_content_type``, add the following config to your eZ Platform config:

.. code-block:: yaml
Expand All @@ -23,6 +23,6 @@ For example, to add the preview for your custom content type with identifier
match:
Identifier\ContentType: my_content_type
``@App/ngcb/preview/my_content_type.html.twig`` is then a regular eZ Publish
``@App/ngcb/preview/my_content_type.html.twig`` is then a regular eZ Platform
content view template, meaning you have access to ``content`` and ``location``
variables, which you can use to render what ever you wish.

0 comments on commit 5cd083a

Please sign in to comment.