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,
How to have a full URL of an item? I use
Hi Biagio,
Have you tried using the NiceUrlWithDomain(int id) method.
Like this:
<a href="@Umbraco.NiceUrlWithDomain(1234)">My link</a>
You can find the documentation here https://our.umbraco.org/documentation/Implementation/Query-Data/UmbracoHelper
Hope thus helps,
/Dennis
And for an item like image as item.GetCropUrl?
Perhaps you could solve this by using the following:
<img src='@Umbraco.NiceUrlWithDomain(CurrentPage.Id).GetCropUrl("image", "banner")' />
Else I think this will work for you
@{ var domain = "http://" + HttpContext.Current.Request.Url.Host; <img src='@[email protected]("image", "banner")' /> }
Hope one of the two suggestions can be a solution for you.
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
Full URL of item. How?
Hi,
How to have a full URL of an item? I use
Hi Biagio,
Have you tried using the NiceUrlWithDomain(int id) method.
Like this:
You can find the documentation here https://our.umbraco.org/documentation/Implementation/Query-Data/UmbracoHelper
Hope thus helps,
/Dennis
And for an item like image as item.GetCropUrl?
Hi Biagio,
Perhaps you could solve this by using the following:
Else I think this will work for you
Hope one of the two suggestions can be a solution for you.
/Dennis
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.