0

I have a list in share point containing some news data including images. I need to show an image and a portion of news with "more" link, from which user will be able to open the entire news page. How can we implement that ?

1 Answer 1

0

I think the only way here is very straightforward. Create new field "ShortContent", add it to your view and hide it from the DisplayView. If news are created by content manager, than he should fill this field by himself, as it provides more pleasant view of "ShortContent". The "more" link can be added in Event Receiver.

If you need to cut news automatically, than it can also be implemented in Event Receiver, but sometimes it can be complicated. You have to think about the algorithm and use some 3d-party HTML parser to properly cut images and text.

1
  • Thanks for your reply. Can you provide a sample code or link to do this ?
    – Anish V
    Dec 6, 2013 at 11:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.