Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Get page content without format and limit the number of characters

Started by Usk70 9 years ago · 1 replies · 895 views
9 years ago

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?

Suggested topics

Topic Participants Replies Views Activity
General · by Old Man Umby, 1 week ago
2 114 3 hours ago
General · by jeremycherfas, 2 weeks ago
5 202 15 hours ago
General · by lynbor, 6 days ago
2 133 4 days ago
General · by Sebastian, 2 weeks ago
1 132 2 weeks ago
General · by Andy Miller, 3 weeks ago
0 256 3 weeks ago