+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How to render and show a form in a custom MVC control?

How to render and show a form in a custom MVC control?

6 posts, 0 answered
  1. Koby
    Koby avatar
    4 posts
    Registered:
    21 Jul 2015
    11 Jan
    Link to this post
    I created a custom wizard-like control which shows different forms & control. I'd like to integrate it with Sitefinity by showing forms that were already pre-created in the CMS. I can retrieve the form objevt from the CMS but cannot find a way to render itin my control's view. is there an out of the box  method to do this?
  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    30 Sep 2016
    14 Jan
    Link to this post
    Hello Koby,

    You can check the implementation of the current Feather's Forms widget. The source code of the widget could be found here:
    https://github.com/Sitefinity/feather-widgets/tree/master/Telerik.Sitefinity.Frontend.Forms

    I hope this helps.

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Koby
    Koby avatar
    4 posts
    Registered:
    21 Jul 2015
    28 Jan
    Link to this post

    I also need this functionality for pages, but don't see an example for rendering a page in Feather. is there any documentation online for this? 

    I'm looking to achieve something like this:

    <div class="PageContent">

        @HTML.RenderSitefinityPage(Model.pageData)

    </div>

  4. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    30 Sep 2016
    28 Jan
    Link to this post
    Hello Koby,

    For pages you can try to render them in iframe.

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  5. Koby
    Koby avatar
    4 posts
    Registered:
    21 Jul 2015
    28 Jan
    Link to this post
    Can you post an example for rendering a sitefinity page?
  6. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    30 Sep 2016
    02 Feb
    Link to this post
    Hi Koby,

    You can use the Raw helper in the View, for example like:
    @Html.Raw("<iframe  src='http://mysite.com/my-page'></iframe>")

    The result could be found in that screenshot.

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
6 posts, 0 answered