Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity 3.x: Set-up & Installation > cant add controls to template

cant add controls to template

  • Chris avatar

    Posted on Apr 2, 2008 (permalink)

    Hi,

    I have created a template (via creating a master page in VS).  The template has several ContentPlaceHolders (menu, main, footer, etc).  However, when I edit the template I cant drag & drop any control onto any container. 
    I can only get the control added by going through the steps on the right of the page and hitting "Add".
    But even then, after adding in the control to the container, the system wont allow me to then edit the control.  Rather than saying "Edit" it says "Mouse-over to edit" - if you put the mouse over or click on it nothing happens.

    The only other thing going on is a Javascript error on the page saying : Line 117, Char 22, 'length' is null or not an object.
    I have checked my master page and I have no code that relates to 'length'.

    I did try the above again with another template - this time with just one ContentPlaceHolder on it - but I still couldnt add a control to the template.

    Please let me know what it is that I am doing wrong.
    Many thanks in advance,
    Chris Sassons

    Reply

  • Rebecca Rebecca admin's avatar

    Posted on Apr 2, 2008 (permalink)

    Hi Chris,

    Thank you very much for describing the problem in detail. Please open the .master file used by your Sitefinity template and make sure there are no characters between the opening and closing tags:

    <asp:ContentPlaceHolder ID="main" runat="server"></asp:ContentPlaceHolder> 

    Alternatively, you can close the tags like this:

    <asp:ContentPlaceHolder ID="main" runat="server" /> 

    Feel free to send us your masterpages and css if the above doesn't help to fix this.

    Greetings,
    Rebecca
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

    Reply

  • Posted on Nov 24, 2008 (permalink)

    I hade the same problem.

    First I removed all the tables in the Masterpage. Then it worked. But now it’s stuck again and i haven’t figured out why. But what I do is that I use on of the "came a long" Masterpages. Then when I have added the control I switch back to the Masterpage that I have created. Just make sure that the content container have the same name in both Masterpages.

    Reply

  • Pepi Pepi admin's avatar

    Posted on Nov 24, 2008 (permalink)

    Hello Carl-Johan,

    Please open a new support ticket and send us your .master page and all related .css and .js files to test the issue locally. Also, what browser do you use?

    Thanks for your cooperation in advance.

    Regards,
    Pepi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

    Reply

  • Posted on Nov 24, 2008 (permalink)

    Sure. Thanks for the quick reply.

    Reply

  • Kiearn avatar

    Posted on Jun 29, 2009 (permalink)

    Hi

    I was having the same issue, my error was a result of commenting out ContentPlaceHolders

    <!--
    <asp:ContentPlaceHolder id="ContentPlaceHolders1" runat="server" /> 
    -->


    Kieran

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Jun 29, 2009 (permalink)

    Hello Kiearn,

    Since the post in almost an year old. I hope that the problem was sorted out at your end.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

    Reply

  • Posted on Feb 24, 2010 (permalink)

    I just want to add to the record.  Yes, commenting = bad.

    -Dan Finney

    sitefinity web design

    Reply

  • Register for webinar
Skip Navigation LinksHome / Developer Network / Forums / Sitefinity 3.x: Set-up & Installation > cant add controls to template