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 | 2276 | 9 years ago | ||
| 2 | 1496 | 9 years ago | ||
| 2 | 4745 | 9 years ago | ||
| 1 | 3555 | 9 years ago | ||
| 3 | 1619 | 9 years ago |