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. How to pass data to an included template ?