Try our conversational search powered by Generative AI!

Extend Link Editor (HyperlinkProperties.aspx)


Just wondering if anyone can point me in the right direction. I haven't been able to find much documentation on extending the link editorm but I'd like to add a custom field where an editor can input url parameters and it would append it to the friendly URL, even when the link target has been specified as "Page on this website". Is this possible? Are there better alternatives?



Aug 10, 2013 1:11

It sure is possible to override and add your own.  I just completed an implementation where i added a bookmark field for "page on this website" where it will fetch bookmarks from the page you select in the pagereference field.  It works well.  what you need to do is create a virtual path map that intercepts the current link editor and it will direct it to yours.  Then you can do whatever you want.

    <add url="~/util/cms/editor/dialogs/HyperlinkProperties.aspx"
      mappedUrl="~/Static/HyperlinkProperties.aspx" />

    I am not sure what the url path is to it but you can see it in firebug where the request is coming from and the mappedurl will take its place and show yours.

Aug 11, 2013 18:24

Thank you for the response. When you say you created your own, did you basically just modify the HyperlinkProperties.js file although you used the virtual mapping to point to a copy in a different location? I found a few other posts saying this was an option but that it is quite a hefty and inadvisable task.

I realize the work it took to get your bookmark functionality in place so won't ask for your complete code, but even a tiny code snippet to point me in the right direction would be much appreciated. I feel very stuck. Or, if you can confirm it is a modification of the HyperlinkProperties.js file, that's a great start for me as well. I just don't want to go down the wrong route only to have to start over. Thanks again!

Aug 12, 2013 20:10

if you want to email me.  we can discuss getting your issue resolved.

Aug 12, 2013 20:12
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.