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
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
Try using StripHtml:
<xsl:value-of select="umbraco.library:StripHtml($yourText)" />
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.
is working on a reply...
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.