22405 Posts in 6883 Topics by 2748 members
General questions about getting started with SilverStripe that don't fit in any of the categories above.
|Go to End|
27 August 2009 at 1:03am
I want to display 4 recent articles on the Homepage, and a certain number of words or characters for each article, so even if an article has a short first sentence it will show a little of the second sentence to ensure that all 4 have a consistent amount of text. $Content.Summary() ends at the end of the first paragraph.
Is this possible, and if so how is it done?
27 August 2009 at 1:32am
Okay, have found this page here: http://api.silverstripe.com/sapphire/model/Text.html
Now the issue here is that any option seems to either stripe HTML tags altogether, so no paragraph breaks, or else LimitWordCountXML adds extgra <br /> tags for no apparent reason within the text.
|Go to Top|