Skip to content

Latest commit

 

History

History
70 lines (58 loc) · 1.95 KB

vistas_en.md

File metadata and controls

70 lines (58 loc) · 1.95 KB

Layout

Bloques en layout.html.twig

A continuación se detallan los bloques posibles a reescribir que contiene el layout

    {% block title %}{% endblock %}
    {% block stylesheets %}{% endblock %}
    {% block head_javascript %}{% endblock %}
    {% block favicon %}{% endblock %}
    {% block nav %}
        {% block navbar_brand %}{% endblock %}
        {% block menu %}{% endblock %}
    {% endblock %}
    {% block page %}{% endblock %}
    {% block footer %}{% endblock %}
    {% block javascript %}{% endblock %}

Variables, if necessary load the configuration in the view with the function admincrud_config() from another bundle you can set your: Configuration - treeBuilder - root as described below:

{% set parameterRoot = "demo_bundle" %}

List

Block override Index list

    {% block title %}{% endblock %}

    {% block pageTitle %}{% endblock %}

    {% block pageInfo %}{% endblock %}

    {% block formFilterForm %}{% endblock %}
    
    {% block page %}{% endblock %}

    {% block buttons %}{% endblock %}

    {% block table_head %}{% endblock %}

    {% block table_body %}{% endblock %}

    {% block actions %}{% endblock %}

    {% block buttonsbelow %}{% endblock %}

Preview images in list index.html.twig use imagine_filter

    <img src="{{ vich_uploader_asset(entity, field.file)|imagine_filter('my_thumb_list') }}">

Show

Blocks according show.html.twig list field types

    {% block datetime %}{% endblock %}
    {% block boolean %}{% endblock %}
    {% block ONE_TO_MANY_MANY_TO_MANY %}{% endblock %}
    {% block text %}{% endblock %}
    {% block money %}{% endblock %}
    {% block vich_file %}{% endblock %}
    {% block vich_file_many %}{% endblock %}
    {% block button %}{% endblock %}
    {% block default %}{% endblock %}

    {% block page %}{% endblock %}
    {% block panelheading %}{% endblock %}