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
Im looking for a way to get the html of a node with template to render using ajax based query for example, when at home clicking a link /about/ will return an ajax of the html of about page
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage @{ Layout = null; } <div class="about"> /*about content from node about*/ </div>
so the ajax data will later give us
<div class="about"> Lorem ipsum dolor si amet </div>
then i will render it to the placeholder front end of the website
I know we can get the node id using
UmbracoContext.Current.ContentCache.GetByRoute(string url)
or
uQuery.GetNodeByUrl
Hi Philip
Try to use this method:
library.RenderTemplate()
Do not use "uQuery" in any case, it will be deprecated. Hope it will help you.
Thanks,
Alex
thanks for the solution works perfectly!
Glad to help, have a nice evening!
/Alex
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco Ajax based site
Im looking for a way to get the html of a node with template to render using ajax based query for example, when at home clicking a link /about/ will return an ajax of the html of about page
so the ajax data will later give us
then i will render it to the placeholder front end of the website
I know we can get the node id using
or
Hi Philip
Try to use this method:
Do not use "uQuery" in any case, it will be deprecated. Hope it will help you.
Thanks,
Alex
thanks for the solution works perfectly!
Glad to help, have a nice evening!
/Alex
is working on a reply...