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.

Archive /

Our old forums are still available as a read-only archive.

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

Latest News from Tutorial 2 with Blog Module


Go to End


5 Posts   2002 Views

Avatar
KatB

Community Member, 105 Posts

10 April 2008 at 2:11pm

Edited: 10/04/2008 2:22pm

I re-arranged LatestNews() from Tutorial 2 to work with the Blog Module. However, links are not displayed properly on the home page. They look instead like SilverStripe links [the page name/].

How can this be corrected?

Don't use $Content.FirstParagraph, use the full content. Interesting, why does $Content.FirstParagraph produce these strange link forms?

Avatar
Liam

Community Member, 470 Posts

10 April 2008 at 5:09pm

FirstParagraph returns just the text, not html.

Avatar
KatB

Community Member, 105 Posts

14 April 2008 at 1:42pm

Is there a way to transform the text from $FirstParagraph to HTML?

Avatar
KatB

Community Member, 105 Posts

14 April 2008 at 8:05pm

There was a dodgy song: take two steps forward and one step back from the eighties. Anyone remember it? SilverStripe really brings it to mind :)

LatestNews with the blog module will call ALL children, whether published or not. How can I limit the children being called to those that are published?

Avatar
Sam

Administrator, 690 Posts

19 April 2008 at 10:33am

It shouldn't do... Perhaps you are viewing the draft site?

Put $SilverStripeNavigator just before your <body> tag. This will give CMS authors a toolbar that indicates whether you're viewing the draft or published site.