Quick links: Content - sections - sub sections
EN FR
Quick Search Advanced search
 
Page

  [Opened] How to pass data to an included template ?

Posted by pheromix on 05/28/2016 09:51

I created a template inside a module. Now I included this template inside many other templates :

...
{ include 'my_module~my_template' }
...

The problem is that the included template needs data from database because there are listboxs in it. So how can I populate the listbox of the included template ?

thank you

  [Opened] How to pass data to an included template ?

Reply #1 Posted by laurentj on 06/09/2016 14:15

You must pass data needed by the my_template, to the template that include my_template.

 
Page
  1. [résolu] CRUD - problème sur le save >
  2. ScreenCast : Créer une application Jelix en moins d'une minute >
  3. [Résolu] Migration "manuelle" de 1.1 vers 1.2 >
  4. Forum Jelix.org migré sous HaveFnuBB >
  5. [Résolu]Droits hierarchiques... Une idée? >
  6. ScreenCast : Vếtir un portail nu d'une module Jelix >
  7. How to pass data to an included template ?