I’m making an intranet application that features an article on the homepage. An image appears in the top left-hand corner of the lead story and the Title (text) and Body (rich text) wrap around the image.
The problem I’m having is getting a handle to the rich text to populate the Rich Text control on that page. I tried using a repeat control and only showing the one row. The problem with this is that it treats the rich text as text and the formatting is gone (presumably because you’re getting a handle through a view?).
I can get this to work if I create a data source and link it to the document using the DocID but the problem is I need to get that value. I suppose I could use @DBLookup and @Subset to get a handle to the DocID. Is there a more elegant way to do this?
(As an aside, if anyone has a tip for limiting the rich text to only be x words I would be interested in hearing it. I think I’m going to be stuck limiting it using CSS or something like that. My goal is to show a ‘read more’ link after showing the user the beginning of the main story)