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. Quelques Articles et le Planet Jelix >
  2. CRUD et formualires différents >
  3. CRUD controller: how to redirect and how to use multiple columns PK >
  4. Contribuez, contribuez qu'ils disaient ! >
  5. Re: Jelix et sgbd Access >
  6. Re: Problème dans un champ htmleditor >
  7. Re: Problème dans un champ htmleditor >
  8. How to pass data to an included template ?