Ok, so this sounds odd, but bare with me. :) I'm wanting to use the Blog module for articles. In the case of the site I'm working on we have 3 sections that will all have 3 separate blogs. For this case, I will focus on the 'family-blog'.
The idea is similar to one mentioned in the archives (which I can't reply to, else I wouldn't have started a new topic) found here:
http://www.silverstripe.org/archive/show/160555
Here is a snippit of what I have now on the family-blog BlogHolder in Page.ss:
<% if URLSegment == family %>
<% control ChildrenOf(family-blog) %>
<h2>$Title</h2>
$ParagraphSummary
<a href=$Link> more </a>
<% end_control %>
<% end_if %>
This works perfectly fine for showing the first paragraph of a blog entry, however if there are multiple entries (which there are) they are all shown.
So the suggestion from the URL above was to add a Range(0,X) such as this.
<% if URLSegment == family %>
<% control ChildrenOf(family-blog) %>
<% control Range(0,1) %>
<h2>$Title</h2>
$ParagraphSummary
<a href=$Link> more </a>
<% end_control %>
<% end_control %>
<% end_if %>
This, however produces no errors, but also no content.
I can't seem to find any reference for how to use Range(X,X) or even if it's supported.
Any guidance?