Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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 <a 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
What is the error message?
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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 <a 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
What is the error message?
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
is working on a reply...