Skip to content

Commit

Permalink
Add note about frontend assets needed for AJAX paged blocks and sliders'
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Aug 17, 2020
1 parent 254ce57 commit 51fd89b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions getting_started/install_existing_project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,22 @@ layout or not:
Adjusting your base pagelayout template
---------------------------------------

To be able to render correctly list/grid blocks with paging and gallery blocks
with sliders, you need to add some assets to your page head. All needed assets
are conveniently provided by a single template you can include:

.. code-block:: twig
{% include '@NetgenLayoutsStandard/page_head.html.twig' with { full: true } %}
You can also include javascripts and stylesheets separately, in case you wish
to load stylesheets from the page head and javascripts from the end of the body:

.. code-block:: twig
{% include '@NetgenLayoutsStandard/stylesheets.html.twig' with { full: true } %}
{% include '@NetgenLayoutsStandard/javascripts.html.twig' with { full: true } %}
To actually display the resolved layout template in your page, you need to
modify your main pagelayout template to include a Twig block named layout which
wraps everything between your opening and closing ``<body>`` tag:
Expand Down

0 comments on commit 51fd89b

Please sign in to comment.