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

Forums / Developing with Sitefinity / Creating Pages Using Native API/Fluent API

Creating Pages Using Native API/Fluent API

4 posts, 0 answered
  1. KiranKumar
    KiranKumar avatar
    3 posts
    Registered:
    09 May 2014
    24 Feb 2015
    Link to this post

    Hello,

    I am trying to create pages using Native API/Fluent API in visual studio, i am not sure how to start? After opening my project in visual studio where/how do i need to add the code to create the pages? Please provide an example. I saw link in the sitefinity but it doesn't provide information from scratch.

    http://docs.sitefinity.com/for-developers-create-pages

    Thank you

    Kiran

     

  2. Kaloyan
    Kaloyan avatar
    272 posts
    Registered:
    02 Dec 2016
    27 Feb 2015
    Link to this post
    Hi Kiran,

    The easiest way to create a page programmatically is to add a new webform to your project and then put the code sample provided in our documentation in it. The approach is the same both for Native and Fluent API.

    Regards,
    Kaloyan
    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. KiranKumar
    KiranKumar avatar
    3 posts
    Registered:
    09 May 2014
    27 Feb 2015 in reply to Kaloyan
    Link to this post

    Hi Kaloyan,

     Thanks for the response. I added a new webform and put the code sample and rebuild the solution. when i go back to administration i didn't see the page created. am i missing anything in here? let me know.

    Thanks,

    Kiran

  4. Kaloyan
    Kaloyan avatar
    272 posts
    Registered:
    02 Dec 2016
    03 Mar 2015
    Link to this post
    Hello Kiran,

    The sample provided in our documentation points how a page can be created using SItefinity API. In order to do this you have to call the method with the following parameters:

    string pageName, bool isHomePage, Guid parentPageNodeId

    Regards,
    Kaloyan
    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
     
4 posts, 0 answered