mainframeguy
- Posts: 15
- Topic Created: Fri Aug 12 02:57:14 2011 +0200
Something I might think was a simple idea to add to the settings poage for postsing - similar to the number of posts per page - how about number of lines per post...
Then this number of lines is displayed on the main page with any excess simply truncated and the total lines only shown if the viewer "clicks through" to view the specific post alone?
What do people say? And if I wanted to add this as a theme specifric tweak just for myself rather then a general setting - would it just be the feather for text in the theme that would need adjustment? And - just to be lazy - can anyone post a code fragment for this?
Arian
There is a Read More module bundled in Chyrp, if you haven't spot yet. It allows you to truncate the post in excerpts.
Specifying the number of characters to leave is not an option for now, but I'll definitely keep the hint for the next version.
For now what you can do is modify the text coming from Read More module, add something like this in the feather .twig file within your theme ${ post.body | read_more("Continue reading...") }