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
Is there a way to create sub nodes and have the parent's node not in the URL?
Example:
ROOT └ Parent └ Child 1 └ Child 2
Instead of the URL path being:
/parent/child-1
/parent/child-2
... it would be:
/child-1
/child-2
Can this be done with a urlrewrite or IUrlProvider?
Thank you!
Hi Ron,
One way you could solve this is by using the "umbracoUrlAlias" property alias to allow the page to be accessible with a custom URL.
Here is some old documentation, but still valid. https://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlalias
I am sure that this can be done in a rewrite rule maybe this article can help you a step further. http://24days.in/umbraco/2014/redirect-rules/
Another thing that could maybe be worth to have a look at is the Hybrid framework, where you will find some great code examples.https://our.umbraco.org/projects/developer-tools/hybrid-framework-for-umbraco-v7
You can also see a video about the Hybrid framework from uHangout https://www.youtube.com/watch?v=Enni9r0whCE
Hope this helps,
/Dennis
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Remove Node From URL
Is there a way to create sub nodes and have the parent's node not in the URL?
Example:
Instead of the URL path being:
/parent/child-1
/parent/child-2
... it would be:
/child-1
/child-2
Can this be done with a urlrewrite or IUrlProvider?
Thank you!
Hi Ron,
One way you could solve this is by using the "umbracoUrlAlias" property alias to allow the page to be accessible with a custom URL.
Here is some old documentation, but still valid. https://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlalias
I am sure that this can be done in a rewrite rule maybe this article can help you a step further. http://24days.in/umbraco/2014/redirect-rules/
Another thing that could maybe be worth to have a look at is the Hybrid framework, where you will find some great code examples.https://our.umbraco.org/projects/developer-tools/hybrid-framework-for-umbraco-v7
You can also see a video about the Hybrid framework from uHangout https://www.youtube.com/watch?v=Enni9r0whCE
Hope this helps,
/Dennis
is working on a reply...