More in this section
Forums / Developing with Sitefinity / How to create a generic detail widget

How to create a generic detail widget

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
1 posts, 0 answered
  1. Ethan
    Ethan avatar
    0 posts
    07 Jan 2015
    22 Feb 2017
    Link to this post

    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. 

1 posts, 0 answered