if I do page.content, it's also printing the page.summary. I don't want that. How can I avoid it?
Archive
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 | 1326 | 9 years ago | ||
| 2 | 920 | 9 years ago | ||
| 2 | 4050 | 9 years ago | ||
| 1 | 2928 | 9 years ago | ||
| 3 | 1107 | 9 years ago |