Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Robin 37 posts 109 karma points
    Mar 06, 2013 @ 14:39
    Robin
    0

    Not 1 macro is working

    My macro's in Umbraco aren't working. I created my own, and they work fine on my local machines. I can put them on other installations of Umbraco too, however, the user controls should be on an website online where I can't get any macro work. Even not macro's I installed from a package (who are working really fine on my local machine).

    I don't know how and where to troubleshoot. Please help!

    For example: the uLogin package. When I insert the macro and click save and publish, I only get text 'Login' and 'Login Name' and no way to login. Below the html I copied from the page displayed in the browser.

    <p> <div id="notLoggedInPanel" class="notLoggedInPanel">    
        <p>Loginp>
        <p id="loginName" class="loginName">
          <label for="loginNameTextBox" id="loginNameLabel" class="loginLabel">Login Namelabel>
           p>

    On a good working page it should be something like this (got it from my local site):

    <div id="notLoggedInPanel" class="notLoggedInPanel">  
    
        <p>Loginp>
        <p id="loginName" class="loginName">
          <label for="loginNameTextBox" id="loginNameLabel" class="loginLabel">Login Namelabel>
          <input name="ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_content$ctl01$uLogin_5$loginNameTextBox" type="text" id="loginNameTextBox" class="loginInput" />
          <span id="ContentPlaceHolderDefault_cp_content_ctl01_uLogin_5_loginNameRequired" class="loginValidator" style="display:none;">*span>
        p>
    
        <p id="password" class="password">
            <label for="passwordTextBox" id="passwordLabel" class="loginLabel">Passwordlabel>
            <input name="ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_content$ctl01$uLogin_5$passwordTextBox" type="password" id="passwordTextBox" class="loginInput" />
            <span id="ContentPlaceHolderDefault_cp_content_ctl01_uLogin_5_passwordRequired" class="loginValidator" style="display:none;">*span>
        p>
    
        <p id="rememberMe" class="rememberMe">
            <span class="rememberMeCheckBox"><input id="rememberMeCheckBox" type="checkbox" name="ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_content$ctl01$uLogin_5$rememberMeCheckBox" /><label for="rememberMeCheckBox">Remember Me On This Computerlabel>span>
        p>
    
        <p id="submit" class="submit">
            <input type="submit" name="ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_content$ctl01$uLogin_5$loginButton" value="Login" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_content$ctl01$uLogin_5$loginButton&quot;, &quot;&quot;, true, &quot;uLogin&quot;, &quot;&quot;, false, false))" id="loginButton" class="loginSubmit" />
        p>
    
        <p id="loginFailure" class="loginFailure">
    
        p>

    The person who created the template did it for the first time and is no professional (I'm not a professional either!), can it be something is forgotten in the template?

    Please help, I don't know where to start searching for the problem. It doesn't work on chid pages and not on parent pages.

    update: the twitter package (xslt macro) is working, but the styling is really bad. So it seems the problem is with asp.net macro's

    edit: republishing the nodes lik suggested here didn't solve the problem either http://our.umbraco.org/forum/templating/templates-and-document-types/15182-NET-Usercontrol-will-not-render-in-Template

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 06, 2013 @ 15:44
    Jan Skovgaard
    0

    Hi Robin

    Does the macroes display something like Macro(); ?

    Or do you get any error on the pages?

    How have you done the deploy? I have suspision that you might have not mapped the macroes to the files but have just copied the files to the live-server, not creating the macroes and mapped them to the proper files.

    Looking forward to hearing from you.

    /Jan

  • Robin 37 posts 109 karma points
    Mar 06, 2013 @ 15:54
    Robin
    0

    Hi Jan

    The macro's doesn't show anything lik Macro(). The uLogin macro for example just shows the text 'login' and 'login name. I don't get any error messages.
    For the uLogin package, I just inserted the macro that was preinstalled. For my own packages I copied the .ascx file to usercontrols and the .dll file to the bin folder. Then I created the macro using the backend of Umbraco. The same procedure I followed already since I work with Umbraco for a few weeks.

    Robin

    edit: I installed Umbraco myself on the server, so no 'Umbraco-ready' webspace is used. I use umbraco V4.11.3 on the server.

    edit2: The rendered content in the richtextfield in the backend in Umbraco looks exacht the same on my local machine and on the server, but the server version is not working. If you need more information, please let me know. I'm stuck with it.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 06, 2013 @ 17:05
    Jan Skovgaard
    0

    Hi Robin

    Ok, can you tell me a bit more about you deploy from your local environment to your live environment? I suppose you simply just FTP the files, or how do you go about it?

    /Jan

  • Robin 37 posts 109 karma points
    Mar 06, 2013 @ 17:15
    Robin
    0

    Hi Jan

    The live environment is a project where several users are working on. Umbraco was installed with the use of the web platform installer. An empty site was chosen. The one who made the template, created then the masterpages with the backend of Umbraco and the contentpages were added. Everything went fine with that.

    Ftp didn't work for some strange reason.

    On my local website I use a starterkit. Can it be that something is missing in the template?

  • Robin 37 posts 109 karma points
    Mar 06, 2013 @ 17:22
    Robin
    0

    I've got something more now. I placed a <form> tag around my contenplaceholder and the content is rendered. Not perfectly how I would want it but that will probably just be some tweaking. I tried this before but did this on the wrong contentplaceholder (and yes, the contentplaceholder has a runat=server). Does someone has an explanation for this?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 06, 2013 @ 17:28
    Jan Skovgaard
    0

    Hi Robin

    Ok, so the two environments are not really in sync...

    That does not make it easy on yourself to do local development and deploy to live when a new feature is ready. I will recommend that you consider making sure the two environments are identical...otherwise you'll spend way to much time pulling your hair wondering why something is not working as expected.

    It makes sense that the form tag should be placed around all of the content in order to make macroes based on user control work.

    How do you reference your stylesheet and javascript files? If they're referenced relatively in the master then make sure to reference them absolutely...adding a forward slash to the reference like <link href="/css/style.css" /> for instance.

    Hope this makes sense.

    /Jan

  • Robin 37 posts 109 karma points
    Mar 06, 2013 @ 19:35
    Robin
    0

    Hello

    Is there an easy and recommanded way of keeping the two installations in sync? It should indeed have some advantages for adding new features and upgrading Umbracco and so on.

    I use relatively references indeed. I learned it that way and did it always in the past, it's a lot easier then absolute. Is it possible you switched the names relatively and absolutely?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 06, 2013 @ 20:35
    Jan Skovgaard
    0

    Hi Robin

    The easy approach would be to deploy from local to live using FTP, or Courier for instance.

    For css and script references you should simply just use absolute paths to make sure that styles etc. is being applied correctly on the rest of your pages. What should the advantage of using relative url's be in this case? :)

    /Jan

  • Robin 37 posts 109 karma points
    Mar 07, 2013 @ 08:43
    Robin
    0

    From wikipedia:

    Absolute path:

    A:\Temp\File.txt

    Relative path

    ./bobapples

    When I should use absolute path's my live website shouldn't find the files. If I set then the path correct, then my local site wouldn't find the files. Sorry, but I really don't get it why you tell me I should use absolute paths :(

    I will look for an ftp solution then. Thanks for your reply!

     

Please Sign in or register to post replies

Write your reply to:

Draft