I'm a newbie to php and silverstripe trying to set up a village website. I want the front page to be mainly news stories. At the moment I want get the first paragraph and not the whole story. Is there any way of changing this?
Thankyou
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
I'm a newbie to php and silverstripe trying to set up a village website. I want the front page to be mainly news stories. At the moment I want get the first paragraph and not the whole story. Is there any way of changing this?
Thankyou
Gary,
in blog->templates->includes you should find a file called BlogSummary.ss. This is presumably the file you are calling to get your front page listing. Find the line:
$ParagraphSummary
and replace it with
$ParsedContent
It would probably be a good idea to name this new version something like BlogFull.ss and then call it rather than BlogSummary.ss.
Hopefully that is enough to solve your problem.
cheers
bruce