Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Looks fine. I use: UrlResolver.Current.GetUrl(contentReference, null, new VirtualPathArguments { ForceAbsolute = true });
In a muliti-language solution you might want to include the language, ContentLanguage.PreferredCulture.Name, or the language of the actual page.
Hi,
How to get the absolute URL of the content reference ?
[UIHint(UIHint.Image)] [Display( Name = "xxx", Description = "xxx", GroupName = xx, Order = 350)] public virtual ContentReference TestImage { get; set; } //I found that this method works, is there any better method ? return UrlResolver.Current.GetUrl(pageHelper.GetCurrentPageData().MetaImage, null, new VirtualPathArguments { ForceAbsolute = true });