Copied to clipboard

Flag this post as spam?

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


  • Babajide 26 posts 46 karma points
    Jul 27, 2012 @ 23:37
    Babajide
    0

    New updater not working on live site, but working on local host

    My news updater is working on my local host but is not working on my live site for some reason. Here's teh code:

    @inherits umbraco.MacroEngines.DynamicNodeContext
    @{  
        var news @Model.NodeById(1082);
        var selectedNews news.Children.First();

     <div>    
       @news.Name
      
       @selectedNews.PublishedDate.ToString("MMMM dd, yyyy"@selectedNews.Name <href="@selectedNews.NiceUrl"><b>Read More...</b></a></div>
     
      }
      

     

     

     

    My testimonial updater has the same problem.

    @inherits umbraco.MacroEngines.DynamicNodeContext
    @{  
    var testimonials @Model.NodeById(1098);
    var selectedTestimonial =  testimonials.Children.First();
     
     <div>    
       
       
       @selectedTestimonial.Name
       <br/>
       @selectedTestimonial.Author
       <br/><a href="@Model.NodeById(1098).NiceUrl"><b>Read more testimonials ></b></a>
       
      </div>
     

      <br/>
        }

     

     

     

    Thanks

  • David Dimmer 76 posts 134 karma points
    Jul 27, 2012 @ 23:44
    David Dimmer
    0

    What is the error message? 

  • David Dimmer 76 posts 134 karma points
    Jul 27, 2012 @ 23:47
    David Dimmer
    0

  • Jazz 21 posts 41 karma points
    Jul 31, 2012 @ 17:35
    Jazz
    0

    Hi Babajide,

    Just double check your Node ids on live server, I means are they same as below on your local; ID for NEWS and TESTIMONIALS nodes

    var news = @Model.NodeById(1082);


    var testimonials = @Model.NodeById(1098);

    Thanks,

    Jazz

Please Sign in or register to post replies

Write your reply to:

Draft