Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Latest News from Tutorial 2 with Blog Module

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

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

Page: 1
Go to End
Author Topic: 1699 Views
  • KatB
    Avatar
    Community Member
    94 Posts

    Latest News from Tutorial 2 with Blog Module Link to this post

    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?

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: Latest News from Tutorial 2 with Blog Module Link to this post

    FirstParagraph returns just the text, not html.

  • KatB
    Avatar
    Community Member
    94 Posts

    Re: Latest News from Tutorial 2 with Blog Module Link to this post

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

  • KatB
    Avatar
    Community Member
    94 Posts

    Re: Latest News from Tutorial 2 with Blog Module Link to this post

    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?

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Latest News from Tutorial 2 with Blog Module Link to this post

    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.

    1699 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.