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

Forums / General Discussions / BUG: Creating Template from masterfile

BUG: Creating Template from masterfile

4 posts, 0 answered
  1. Phill Hodgkinson
    Phill Hodgkinson avatar
    362 posts
    Registered:
    10 Nov 2004
    09 Dec 2010
    Link to this post
    When I attempt to create a template from a masterfile that I've already setup on my file system, I browse to the file and then the system forces me to enter a name for the template (it's a required field). The bug is that it gives me an error that there's a "Duplicate Name" and I can't continue. However if I cancel and return to Templates the Template was actually created.

    As a request, I'd like to be able to actually define the name of the template to something other than the name of the .master file, but right now this isn't possible.

    In addition as I've mentioned in another post, it's not really a bug but an error in the Documentation. It seems wrong to me that the default location the system looks for a .master file is ~/App_Master  but the documentation tells you to create this folder under App_Data/Sitefinity/etc...  Either the documentation should be fixed or the location the system looks for .master files by default should reflect your documentation.

    Regards,
    Phill
  2. Neven Dinev
    Neven Dinev avatar
    43 posts
    Registered:
    24 Jan 2017
    10 Dec 2010
    Link to this post
    Hello Phill,

    The problem with duplicated master file exist in our bug tracking system as id 68380.
    The problem with documentation is communicated with documentation team. Actually if App_Master exist in your file system we load this folder as a default.

    When you work with VS ( dev environment ) it is more convenient to use App_Master or any other folder.

    Regards,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Phill Hodgkinson
    Phill Hodgkinson avatar
    362 posts
    Registered:
    10 Nov 2004
    29 Apr 2011
    Link to this post
    Hi there,

    This bug has been around since before Dec 6th and still exists in a clean install of 4.1

    "When I attempt to create a template from a masterfile that I've already setup on my file system, I browse to the file and then the system forces me to enter a name for the template (it's a required field). The bug is that it gives me an error that there's a "Duplicate Name" and I can't continue. However if I cancel and return to Templates the Template was actually created."

    The same behavior described previously still happens. However if you give the Template a different name from the name of the .master file you actually get two templates created. One from the .master file and one based on the template that was created w/ the master file. 

    Can this issue be added to PITS so it can be tracked? With the next release can you also do some testing using custom templates? I'm pretty sure minimal testing was done if any and this seems like a pretty common requirement to me.

    Regards,
    Phill
  4. Petya
    Petya avatar
    123 posts
    Registered:
    30 May 2017
    05 May 2011
    Link to this post
    Hello Phill ,

    Thank you for reporting this issue. Actually I managed to reproduce your problem only in this case:
      1. Go to Design > Page templates
      2. Click "Create a template" 
      3. Click "Back to templates"
      4. Then click "Create a template" again
      5. Click "Use template" (notice that the template thumbnail is not loaded)
      6. Select your master file
      7. Type the same name as the master file
      8. Press "Create and go to add content" or "Create and return to Templates"
    As a result : message "Duplicated Name!"
    Selecting "Back to templates" actually creates the template


    Workaround:
    Delete this template - created after the error "Duplicated Name!". Select Design > Page templates and  try steps from 4 to 8 (on step 5 make sure that the default template thumbnail is visible before you select the master page ) - you will be able to create the template with the same name as the master page.

    I updated your Telerik points. You can follow the issue here: 
    http://www.telerik.com/support/pits.aspx#/public/sitefinity/5853


    Kind regards,
    Petya
    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
4 posts, 0 answered