More in this section

Forums / Developing with Sitefinity / Duplicate page template to a .master file

Duplicate page template to a .master file

10 posts, 0 answered
  1. Martin Kulov
    Martin Kulov avatar
    9 posts
    Registered:
    30 Jan 2008
    25 Mar 2012
    Link to this post
    Hi,

    Is it possible to copy existing page template into a new .master page file saved in the file system with SF 5.0 backend?

    Thank you!
  2. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    31 May 2017
    26 Mar 2012
    Link to this post
    Hello,

    In Sitefinity Page templates are saved in the data base and they are not associated with a physical master page, so for the moment it is not possible to offer you to еxport the dynamically generated templates to master pages. Could you please elaborate a little on your use-case scenario, so that we can try to come up with a workaround for you? Where do you want to copy this page template, in the existing project or in a new one?

    Regards,
    Stefani Tacheva
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. Martin Kulov
    Martin Kulov avatar
    9 posts
    Registered:
    30 Jan 2008
    03 Apr 2012
    Link to this post
    Hi Stefani,

    I would like to have a Page created and customized using SF backend. This will help me kickstart my project. Some time later I would like to manually change the existing reference to jQuery libraries and server side code by reusing what I have already created in the backend. 
    This way I can save some time and will get help from the SF designer.

    Thanks!
  4. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    31 May 2017
    03 Apr 2012
    Link to this post
    Hi,

    To change the JQuery you can go to the default ScriptManager settings by selecting Administration -> Settings -> Advanced -> Pages -> Script Manager -> Script References -> JQuery  and change the default path, but it is not appropriate to change it because Sitefinity is stable with this particular version of JQuery and the tests we have made are connected with it.

    In order to avoid your problem you can change the JQuery in your master page using the following source code for example:

    <script src="/Scripts/jquery-1.3.2.js" type="text/javascript"></script>

    Regards,
    Stefani Tacheva
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  5. Martin Kulov
    Martin Kulov avatar
    9 posts
    Registered:
    30 Jan 2008
    03 Apr 2012
    Link to this post
    Yes, but the major goal of changing already customized version of the master page cannot be solved.
  6. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    31 May 2017
    04 Apr 2012
    Link to this post
    Hello,

    Can you please give more information about your major goal and why the proposed solution did not work for you?

    Greetings,
    Stefani Tacheva
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  7. Martin Kulov
    Martin Kulov avatar
    9 posts
    Registered:
    30 Jan 2008
    04 Apr 2012
    Link to this post
    As a developer I would like to customize and extend a template some editor has created for me. I would like to reuse my CSS/HTML coding skills and implement the server side logic that I need.
    This is more or less general scenario.
    More specific issue is that I need to customize which version of Ajax is included on that template, since editing the Ajax version from the Administrative/Options page renders the complete backend as unusable if incompatible version is selected.
  8. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    31 May 2017
    06 Apr 2012
    Link to this post
    Hi,

    As a general approach it is always convenient to have one base masterpage with Header, Content, and Footer <div> elements which contain one ContentPlaceHolder elements in them. There you can control what to be loaded like CSS/JQuery. Then you can create Sitefinity template based on that masterpage and use it as a base for all other templates which might require additional scenarios (e.g. adding a sidebar to the content area, splitting the footer in several column layouts etc.) The convenience from this approach is that you will always have direct access to the generated HTML form the base masterpage, and you can easily include any necessary scripts and styes, as well as operate with the code-behind part if you need to do some server-side processing.

    Kind regards,
    Stefani Tacheva
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  9. Martin Kulov
    Martin Kulov avatar
    9 posts
    Registered:
    30 Jan 2008
    09 Apr 2012
    Link to this post
    Hi Stefani,

    This is a reasonable solution if I only know upfront that I should make this important decision from the start when my template is being created. It will be nice in this case that SF will provide me with an empty master page disk based template option.

    Thanks
  10. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    31 May 2017
    11 Apr 2012
    Link to this post
    Hello Martin,

    Please find attached attached the empty master page disk based template. More information about creating a template using Master pages can be found in your Sitefinity documentation.

    Kind regards,
    Stefani Tacheva
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
10 posts, 0 answered