Feb 22, 2013 at 4:42 AM
Edited Feb 22, 2013 at 4:44 AM
I'm quite new to Orchard module development. As most of the newbies would say in this forum...
One thing I've noticed from varies of tutorials existing on the web is when developing my own module, the naming convention for module name is something like
the problem is that if I name my module like this, when calling a particular action from browser, the url would looks like
for admin controller
I would like to know if there is a convenient way to make an alias with the MVC area name to make the route prettier
and for admin controller
since my module probably would only be used by my own.
I've learned that there are a couple of ways for achieving this, for example:
- name the module without the prefixed "CompanyName", which I think is not a good idea to solve this problem;
- Add Routes.cs into my own module;
- Enable Orchard.Alias UI and manually config a route from Admin Panel;
But my question is - is there a better way to achieve this goal in one time so that next time when I develop new modules with a particular "CompanyName" namespace, Orchard will automatically skip the prefix and only looking for "ModuleName"?
Does Orchard.Alias support regular expression?