I have a site with a news feed. It is then placed in the usual news 'widget' to create a mini feed.
The feed has the following code to display the body text:
@Umbraco.Truncate(@item.BodyText, 300)
If the client has put any links (using RTE) into the first section of the body text it simply does not display in the feed. However if I remove the truncation and simply display the item body text everything displays as normal.
Truncated Text
Hi,
I have a site with a news feed. It is then placed in the usual news 'widget' to create a mini feed.
The feed has the following code to display the body text:
@Umbraco.Truncate(@item.BodyText, 300)
If the client has put any links (using RTE) into the first section of the body text it simply does not display in the feed. However if I remove the truncation and simply display the item body text everything displays as normal.
Does anyone have a workaround?
Many Thanks
Chris
Hi Christopher,
You could try something like the following:
Thanks
Gary
Hi Chris,
Should your uset be able to add HTML into the RTE field if not then you can use the @Umbraco.StripHtml method first.
Hope this helps and can be a solution for you.
/Dennis
is working on a reply...