if I do page.content, it's also printing the page.summary. I don't want that. How can I avoid it?
There is no built in way, but it can be done pretty easily with Twig (which gets compiled into PHP so it's still fast):
TWIG
{% set content = page.content|slice(page.summary|length) %}
Then just output {{ content }}
Thank you, this works!
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 2613 | 9 years ago | ||
| 2 | 1722 | 9 years ago | ||
| 2 | 5019 | 9 years ago | ||
| 1 | 3848 | 9 years ago | ||
| 3 | 1824 | 9 years ago |