Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • trfletch 595 posts 571 karma points
    Sep 27, 2010 @ 17:31
    trfletch
    0

    RSS feed with no images

    Hi All,

    I have an umbraco 4.5.2 site that is running the old XSLT schema. I want to create an RSS feed that shows the first 200 characters of a certain type of page but without any images. Is this possible using XSLT and if so how would go about doing it? I am using the RSS feed XSLT template and I know how to only show 200 characters so the main question is how can I show only text and no images, most of the pages start with an image or have one or two images within the first 200 characters (i.e. the images are within a rich text editor document property that I am pulling in). Thanks in advance for any help

  • Sebastiaan Janssen 4899 posts 14655 karma points MVP admin hq
    Sep 27, 2010 @ 17:37
    Sebastiaan Janssen
    0

    Try using StripHtml:

    <xsl:value-of select="umbraco.library:StripHtml($yourText)" />

  • trfletch 595 posts 571 karma points
    Sep 27, 2010 @ 17:52
    trfletch
    0

    Thanks for the response Sebastian, for some reason this got double posted so I am going to continue discussing this issue in the other post: http://our.umbraco.org/forum/developers/xslt/13054-RSS-feed-with-no-images

    Hopefully an administrator can remove this one from the forum.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies