Jump to:

23471 Posts in 18937 Topics by 2878 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: 345 Views
  • kinglozzer
    Community Member
    139 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?


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.