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
Hi,
can someone explain the difference please:
Library.NodeById(1052); and Umbraco.Content(id) ?
Is there an advantage here?
Thanks,
Hi Damon,
Library.NodeById is obsolete (it was part of the first Umbraco Razor implementation called DynamicNode), you should always use methods from the Umbraco helper such as Umbraco.Content
Library.NodeById
Umbraco.Content
Jeavon
Also you can use Umbraco.TypedContent() at the frontEnd, in your razor views, it's much faster then Umbraco.Content().
Read more here: https://our.umbraco.org/documentation/Reference/Templating/Mvc/querying
Thanks, Alex
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Whats the difference between using Library.NodeById(1052); and Umbraco.Content(id) ?
Hi,
can someone explain the difference please:
Library.NodeById(1052); and Umbraco.Content(id) ?
Is there an advantage here?
Thanks,
Hi Damon,
Library.NodeById
is obsolete (it was part of the first Umbraco Razor implementation called DynamicNode), you should always use methods from the Umbraco helper such asUmbraco.Content
Jeavon
Hi Damon,
Also you can use Umbraco.TypedContent() at the frontEnd, in your razor views, it's much faster then Umbraco.Content().
Read more here: https://our.umbraco.org/documentation/Reference/Templating/Mvc/querying
Thanks, Alex
is working on a reply...