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

Forums / Developing with Sitefinity / Adding physical page using Sitefiniy template

Adding physical page using Sitefiniy template

2 posts, 0 answered
  1. reza meshksar
    reza meshksar avatar
    2 posts
    Registered:
    19 Dec 2005
    15 Apr 2009
    Link to this post
    I am wondering if I can achieve the following goal in Sitefinity:

    - I want to add a physical aspx page in the Sitefinity web site and use one of the master pages.
    - In Sitefinity the master page (Template) can be modified runtime , so this modification is saved in the database not in the physical master page file.

    Now my physical aspx page which uses the same master page does not have the latest changes of the master page which has been applied runtime.

    Is there any solution for this issue?
  2. Slavo
    Slavo avatar
    295 posts
    Registered:
    24 Sep 2012
    16 Apr 2009
    Link to this post
    Hello reza meshksar,

    The difference between Sitefinity pages and ASPX pages is that the first type goes through the CMS pipeline, the second through the standard ASP.NET pipeline. If a page is created from within the CMS, it uses the CMS and its API to serve content in the response to the browser. The CMS API is where a template is assigned to it.

    Templates in Sitefinity use masterpages, but are not masterpages themselves. They again are constructed by the CMS from the masterpage physical file. If you use a simple ASPX page, the CMS does not play a role at all, only ASP.NET knows to use the physical masterpage for the page you have requested (not to construct a Sitefinity template). 

    In short what this means is that if you want to use the Sitefinity editor to drop controls in a template and use the template, you need a CMS page created in Sitefinity. There's no way for the CMS to know what to do, if you use a simple ASPX page.

    Regards,
    Slavo
2 posts, 0 answered