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 |
|---|---|---|---|---|
| 0 | 72 | 2 days ago | ||
| 0 | 111 | 3 days ago | ||
| 0 | 113 | 4 days ago | ||
| 2 | 205 | 1 week ago | ||
| 2 | 462 | 2 weeks ago |