How to create a generic detail widget
Hi, I am a new Sitefinity developer and currently working on a MVC site. In this site all content (news, events, blogs, dynamic modules, etc) have a banner image. And we need to show this banner image on every detail page and the banner image is on the top of the page which is separated from the actual detail.
So we plan to create a widget (similar to card) to present this field, is there a way to create a generic detail widget that can grab current detail content without knowing the type of the content? Or is there an API to get current detail content?
There is also another place we'd like to use this kind of generic detail widget. On every page, there is a related content widget on the sidebar, the related content is populated based on the categories of current content. We really want to avoid creating separated widgets (related content for news, related content for events, etc.) because we have a lot of dynamic modules and we don't want to overwhelm the content editor.