Skip to content

Instantly share code, notes, and snippets.

@ahmed-bhs
Last active February 26, 2019 20:08
Show Gist options
  • Save ahmed-bhs/d9225a82d7b088d5164b4a49a6ccbf28 to your computer and use it in GitHub Desktop.
Save ahmed-bhs/d9225a82d7b088d5164b4a49a6ccbf28 to your computer and use it in GitHub Desktop.
Au niveau de full type view:
taste:
template: "@ezdesign/full/taste.html.twig"
match:
Identifier\ContentType: [article]
# Tastes page
taste_list:
controller: "ez_query:contentQueryAction"
template: "@ezdesign/full/taste_list.html.twig"
match:
Identifier\ContentType: [folder]
params:
query:
query_type: "AppBundle:Children"
parameters:
parent_location_id: "@=location.id"
assign_results_to: children
Nom de view 'taste' pour la page full qui représente le contenue de l'objet.
- ConType identifier and name alwas singulier
Nom de view 'taste_list' pour la page full qui représente la liste des objets.
Et on respect le meme nommage pour les templates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment