을, 여기에 코드GetFullUrl가 전체 URL을 반환하지 않습니다 - sitecore
string path = string.Format("/sitecore/shell/Applications/Content%20Manager/default.aspx?id={0}&la={1}&fo={0}", contentItem.ID, contentItem.Language);
string fullPath = Sitecore.Web.WebUtil.GetFullUrl(path);
text = text.Replace("$itemUrl$", fullPath);
이이 http://cp.localsite/sitecore/shell/Applications/Content%20Manager/default.aspx?id= {DC6B4AE0-929D-4F19-97F4-825796A30781 뭔가를 반환 } & la = en & fo = {DC6B4AE0-929D-4F19-97F4-825796A30781} 이것은 id가 정상적인 텍스트처럼 보이는 때까지의 링크처럼 생성됩니다. 이 문제를 어떻게 해결할 수 있습니까? 콘텐츠에 클릭 가능한 URL이 필요합니다. 나는 정말 어떤 도움을 주셔서 감사합니다.
감사합니다.
사용자가 콘텐츠를 제출할 때 워크 플로 단계에서 승인자에게 이메일 알림을 보내고 있습니다. 전자 메일에서 컨텐트 항목 링크를 보내려고합니다. 나는 다른 여러 가지 방법도 시도했다. http://stackoverflow.com/questions/26219873/custom-email-notification-with-link-sitecore – Newbie
나는 문자열 경로 = string.Format ("/ sitecore/shell /Applications/Content%20Manager/default.aspx?id={0}&la={1}&fo={0} ", contentItem.ID, contentItem.Language); string encodedPath = System.Web.HttpUtility.UrlEncode (path); 문자열 fullPath = Sitecore.Web.WebUtil.GetFullUrl (encodedPath); text = text.Replace ("$ itemUrl $", fullPath); 하지만이 – Newbie
댓글의 연속 ... 링크가 작동하지 않는 것처럼 보입니다. http : //cp.localsite/%2fsitecore%2fshell%2fApplications%2fContent%2520Manager%2fdefault.aspx%3fid%3d % 7bDC6B4AE0-929D-4F19-97F4-825796A30781 % 7d % 26la % 3d % % 26fo % 3d % 7bDC6B4AE0-929D-4F19-97F4-825796A30781 % 7d – Newbie