NewsfeedsViewCategory::prepareDocument

Prepares the document