Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1591 Widoki

Hello, 

I'm trying to understand Elearning (website_slides) app Qweb structure. 

I have two qweb page apparently ver similar: "website_slides.courses_home " and "website_slides.courses_all". The first one shows only the last 3 user courses, the newest 3 and the 3 most popoular. The secondo shows all courses instead. 

To show courses, the second page uses constructs like:

t-if="channels"

and

t-foreach="channels" t-as="channel"

I need to modify the first page to show all courses like the second, so I tried to use the same constructs but no courses are returned. The second page in fact uses constructs like:

t-if="not channels_popular"

or

t-foreach="channels_my[:3]" t-as="channel"

I don't understand this logic, where this variables are set and how.


Thanks.

G.

Awatar
Odrzuć

Hi,

Can you show your code?


Autor Najlepsza odpowiedź

Hello,

if you install Elearning app (website_slides), you can find the "website_slides.courses_home" view.

From row 105 it starts to print 3 section (users' courses, popoulars and newest).

I want just only delete this 3 sections and show ALL courses instead, but I cannot use "channels" condition, like it is used in othe views.

Thanks

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lip 22
2492
3
lut 24
4358
1
lip 25
2355
2
lip 25
7851
2
lip 25
4247