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
I have seen in umbraco code, where developers get reference to a content page, like this:
var content = UmbracoContext.PublishedContentRequest.IsInternalRedirectPublishedContent ? ubracoContext.PublishedContentRequest.InitialPublishedContent : UmbracoContext.PublishedContentRequest.PublishedContent;
BUT why do they do that ?
Why not use @ Model.Content ()
What is (What do they do):
IsInternalRedirectPublishedContent?
InitialPublishedContent ?
PublishedContent ?
Hi Kim,
Where did you see this code?
It looks like code which work when user uses internal redirect.
Thanks,
Alex
Hi Kim
Did you solve the problem?
Can you share with us how did you solve ?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Why Developer get node reference like this way in Umbraco?
I have seen in umbraco code, where developers get reference to a content page, like this:
var content = UmbracoContext.PublishedContentRequest.IsInternalRedirectPublishedContent ? ubracoContext.PublishedContentRequest.InitialPublishedContent : UmbracoContext.PublishedContentRequest.PublishedContent;
BUT why do they do that ?
Why not use @ Model.Content ()
What is (What do they do):
IsInternalRedirectPublishedContent?
InitialPublishedContent ?
PublishedContent ?
Hi Kim,
Where did you see this code?
It looks like code which work when user uses internal redirect.
Thanks,
Alex
Hi Kim
Did you solve the problem?
Can you share with us how did you solve ?
Thanks,
Alex
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.