Hello, i have twig construction
{% for p in page.find('/works').children.order('random').slice(0, 3) %}
But when it echo - i received current page. How find other pages
Снимок экрана 2016-07-27 в 23
Hello, i have twig construction
{% for p in page.find('/works').children.order('random').slice(0, 3) %}
But when it echo - i received current page. How find other pages
Снимок экрана 2016-07-27 в 23
If you are trying to get contents from a child page maybe try.
{% for p in page.find('/works').children.order('random') %}
{{ p.content }}
{% endfor %}
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1366 | 9 years ago | ||
| 2 | 940 | 9 years ago | ||
| 2 | 4069 | 9 years ago | ||
| 1 | 2960 | 9 years ago | ||
| 3 | 1125 | 9 years ago |