If I remember correctly, I don't think it's possible — Umbraco does this replacement "behind your back", so to speak.
Have you checked the final frontpage output? I seem to remember spending time trying to "fix" this at some point, only to find out that it actually did work as expected in the final result.
The only way to test it is to add the macro to a page, publish the page and then check the Umbraco.config file on disk and see if the links have been changed/transformed.
In Backend RTE if you add link with insert/edit link, it will create such url.
The advantage of it is, renaming or moving to sub/parent a page, the link does not need to relocate.
I want some customization in link so i created macro
Front end will have static url by current method,
it will work fine until you rename/move page.
create macro by given snippet. and in a page in RTE
Select one link with insert link and other link by our macro.
I want both of them have same output. nothing else.
I assume you've confirmed that the URLs have been replaced in the Umbraco.config then...
Another thing you could try, is to disable rendering the macro in the RTE (so you can insert it but it won't be rendered until the page is previewed or rendered for the frontend). It may not work but then again, it could work :)
Probablyn ot an ideal editor-experience, though...
Can I get you to look at a request as you are admin(please check links below)
if umbraco can provide facility to add custom key value pairs while adding link from RTE insert link's treeview and then append as data in anchor tags like
xslt generate html without transformation
I want to create own link picker to select link from umbraco usign macro with xslt, I have given option to select link by content picker
Now after selecting link and other querystring parameter, I want Macro to generate html like
so that we can place it in rte and then it will be changed to relative url by front end
the code snippet is
The Output in RTE backend is
you can see href and data-href are transformed by xslt, i dont want it to be transformed
I want
href="/{localLink:1136}?id=1
Let me know any other way to achieve this
Hi Vishmay,
If I remember correctly, I don't think it's possible — Umbraco does this replacement "behind your back", so to speak.
Have you checked the final frontpage output? I seem to remember spending time trying to "fix" this at some point, only to find out that it actually did work as expected in the final result.
The only way to test it is to add the macro to a page, publish the page and then check the Umbraco.config file on disk and see if the links have been changed/transformed.
Hope that helps,
/Chriztian
In Backend RTE if you add link with insert/edit link, it will create such url. The advantage of it is, renaming or moving to sub/parent a page, the link does not need to relocate.
I want some customization in link so i created macro
Front end will have static url by current method, it will work fine until you rename/move page.
create macro by given snippet. and in a page in RTE Select one link with insert link and other link by our macro. I want both of them have same output. nothing else.
you can check data-href1 is assigned with same variable but produces different result(Expected).
Hi Vishmay,
I assume you've confirmed that the URLs have been replaced in the Umbraco.config then...
Another thing you could try, is to disable rendering the macro in the RTE (so you can insert it but it won't be rendered until the page is previewed or rendered for the frontend). It may not work but then again, it could work :)
Probablyn ot an ideal editor-experience, though...
/Chriztian
Output from umbraco.config
How to disable rendering the macro in the RTE?
Can I get you to look at a request as you are admin(please check links below)
if umbraco can provide facility to add custom key value pairs while adding link from RTE insert link's treeview and then append as data in anchor tags like
Name: HashLink
Value : Section1
We can then change it in front end by javascript
reference
https://our.umbraco.org/forum/extending-umbraco-and-using-the-api//83646-hash-tag-links-in-insert-link-in-umbraco-internal-link
https://our.umbraco.org/forum/using-umbraco-and-getting-started/83611-umbraco-link-editor-in-rte-select-other-page-from-menu-and-add-querystring
is working on a reply...