I'm working with symphony for a few weeks now and getting the hang of it, really loving all the base functionality.
I have a question since I'm not quite sure how to solve this: I have a news/blog page for the project I'm working on. Sometimes the articles are short sometimes very long. What I would like to do, is display an amount of paragraphs but stop when an x amount of characters are found. I Found methods to count the string length, but I would like it to work like this.
<p>paragraph with 20 chars</p>
<p>paragraph with 300 chars</p>
<p>paragraph with 500 chars</p>
etc.
Now I would like to configure a max of lets say, 200 chars. the second paragraph will exceed the amount, but I want the content to be displayed both the first and second paragraph. so it will actually be 320 characters (excluding the html and whitespaces).
I hope I'm not to vague, and someone knows where I should go with this. The best option would be to edit the data source I guess, but it doesn't seem like a clean method to me allthough it should reduce the load slightly.
Anyone care to point me in the right direction?