More in this section

Forums / Developing with Sitefinity / How to use Pages data fields in a Feather MVC widget?

How to use Pages data fields in a Feather MVC widget?

1 posts, 0 answered
  1. Osman
    Osman avatar
    22 posts
    Registered:
    04 Oct 2010
    19 Apr
    Link to this post

    Hello,

    I added several custom fields to the Pages:

    • HeaderTitle [Short text]
    • HeaderDescription [Long text]
    • HeaderImages [Related media (multiple images)]
    • HeaderVideo [Long text]

    And created an Feather MVC widget to render those fields on pages which has the widget placed on.

    Accessing to string fields (title, description, and video) is relatively straightforward. However, I am not sure how to display the images.

    Closest topic I could find was not much helpful though: http://www.sitefinity.com/developer-network/forums/developing-with-sitefinity-/use-image-from-a-page-custom-field-in-navigation-widget

     

    Could you please provide an example for accessing those fields from an MVC widget?

     

    Sitefinity v10.0 6400 + Bootstrap Feather 

     

     

    Thanks,

    Osman

1 posts, 0 answered