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'm currently creating a /base method that returns content from a Rich Text Editor to display in an AJAX Form. (Umbraco 4.7).
My method is:
outputText = umbraco.library.HtmlEncode(thankYouNode.GetProperty("mainContent").Value);
And the output to the screen is:
<p><a href="/{localLink:1058}" title="Home">link</a></p>
Obviously not ideal. Any ideas?
Hi Chad,
Try running the content through:
umbraco.template.ParseInternalLinks(string pageContents)
This usually gets handled by the template rendering but since you're using a base method I think you'll need to account for it yourself.
Hope this helps,Tom
that worked perefectly. Thanks!
Hello,
Would that also help with this? http://our.umbraco.org/forum/developers/api-questions/19752-Method-returning-%7BlocalLink1058%7D
Jeroen
Thanks Tom, I had the same problem.
I had a page that generates json for specific pages. the bodyText content wasn't translating the internal links to NiceUrl.
I used the same method and it works great but I believe that has to be done automatically.
Cheers
Ali
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Method returning {localLink:1058}
I'm currently creating a /base method that returns content from a Rich Text Editor to display in an AJAX Form. (Umbraco 4.7).
My method is:
outputText = umbraco.library.HtmlEncode(thankYouNode.GetProperty("mainContent").Value);
And the output to the screen is:
<p><a href="/{localLink:1058}" title="Home">link</a></p>
Obviously not ideal. Any ideas?
Hi Chad,
Try running the content through:
This usually gets handled by the template rendering but since you're using a base method I think you'll need to account for it yourself.
Hope this helps,
Tom
that worked perefectly. Thanks!
Hello,
Would that also help with this? http://our.umbraco.org/forum/developers/api-questions/19752-Method-returning-%7BlocalLink1058%7D
Jeroen
Thanks Tom, I had the same problem.
I had a page that generates json for specific pages. the bodyText content wasn't translating the internal links to NiceUrl.
I used the same method and it works great but I believe that has to be done automatically.
Cheers
Ali
is working on a reply...