I want to get the content of a given page but without format and limiting output to n characters. The idea is to include the first part of content in an index of pages. Similar to list of blog posts.
Any tips?
I want to get the content of a given page but without format and limiting output to n characters. The idea is to include the first part of content in an index of pages. Similar to list of blog posts.
Any tips?
Hi @Usk70, just checking to see if you already saw this but it is not exactly what you need re: size: int ? https://learn.getgrav.org/content/headers#summary
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 1 | 268 | 3 weeks ago | ||
| 0 | 196 | 3 weeks ago | ||
| 2 | 331 | 3 weeks ago | ||
| 1 | 253 | 3 weeks ago | ||
| 0 | 222 | 3 weeks ago |