Help

0

Qweb: page number as a variable

Avatar
jakub

Hi, 

I know that we can use <span class="page"/>  in order to display actual page number,

but I need to set an actual page in a variable to use it in a if statement:


<t t-if="actual_page_num == 2">

        Display something ...

</t>


Any idea how to manage it? Thank you.



Avatar
Discard