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 am calling some actions from ajax in my umbraco. As they call some surface controller action I need to write them like this:
eg.
var url = "/umbraco/Surface/MyController/GetItems"
Is there any way to route the url so I could get rid of 'umbraco/Surface' part of it?
'umbraco/Surface'
eg. /mysection/getItems
Thanks
Hi Manila
You can route as you want your Controller, but not Surface controller.
Why do you need Surface controller?
Alex
I don't want to show it's umbraco website
Are you using Umbraco Context?
Try to use usual MVC controllers with custom routing.
How to do it?
Hi manila,
you can use custom urls and do a url rewrite using IIS Rewrite module. That should be possible.
Depending on what you want to do with your form you can stick with a SurfaceController.
Regards David
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Hide/ custom routing of umbraco urls
I am calling some actions from ajax in my umbraco. As they call some surface controller action I need to write them like this:
eg.
Is there any way to route the url so I could get rid of
'umbraco/Surface'
part of it?Thanks
Hi Manila
You can route as you want your Controller, but not Surface controller.
Why do you need Surface controller?
Thanks
Alex
I don't want to show it's umbraco website
Are you using Umbraco Context?
Try to use usual MVC controllers with custom routing.
How to do it?
Hi manila,
you can use custom urls and do a url rewrite using IIS Rewrite module. That should be possible.
Depending on what you want to do with your form you can stick with a SurfaceController.
Regards David
is working on a reply...