Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Restricting News entry Summaries


Go to End


957 Views

Avatar
Kathy19

Community Member, 1 Post

15 January 2013 at 8:55am

Hi!
I'm new to silverstripe and was wondering if you could help me - I need to know what to put in my HomePage.php file to restrict the number of news entry summaries displayed.

this is what I have in the HomePage.SS
:
<% control ChildrenOf(news) %>

<% include ArticleTeaser %>

<% end_control %

Thank you so much - I tried looking at the tutorial, but got stuck at this step.