Skip to the content
Documentation

FieldType template: comparison of v.1 vs v.2

No ratings yet

Versions Compared

Old Version 1

changes.mady.by.user Jérôme Vieilledent

Saved on May 10, 2013

compared with

New Version Current

changes.mady.by.user Dominika Kurek

Saved on Dec 15, 2015

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt

To make your template available, you must register it to the system.

Code Block
title exponentialapp/config/exponentialezplatform.yml
exponential:
    system:
        my_siteaccess:
            field_templates:
                -
                    template: "AcmeTestBundle:fields:my_field_template.html.twig"
                    # Priority is optional (default is 0). The higher it is, the higher your template gets in the list.
                    priority: 10
Tip
You can define these rules in a dedicated file instead of exponentialapp/config/exponentialezplatform.yml. Read the cookbook recipe to learn more about it.

Comments

Add a comment

Comments are read by a moderator before they appear.