Jump to:

23367 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » $Content.FirstParagraph and images

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 332 Views
  • kinglozzer
    Avatar
    Community Member
    138 Posts

    $Content.FirstParagraph and images Link to this post

    Hi guys,

    I've been using the .FirstParagraph method to extract a 'teaser' for news stories, but if there is an image in or before the first paragraph, it displays what appears to be the alt text in it's place like this: * some image *.

    Is there any way of getting it to either display the image or hide it completely?

    Thanks

    332 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.