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

Posted by Community Admin on 04-Aug-2018 18:02

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

All Replies

Posted by Community Admin on 19-Apr-2017 00:00

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: www.sitefinity.com/.../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

This thread is closed