What is the source in IAliasService?

Topics: Core, Writing modules
Apr 13, 2012 at 4:58 PM
Edited Apr 13, 2012 at 5:00 PM

I couldn't really figure out what the source parameter passed to IAliasService.Set() should be. Could someone help me please? I'd like to dynamically create urls for custom controller actions an IAliasService looks like the right tool.

Judging from the AdminController of Alias it could be blank too...

Apr 16, 2012 at 10:12 AM

When alias is used with Autoroute it uses a pattern that associates it with the part, have a look in the PublishAlias method of the AutorouteService

Apr 16, 2012 at 10:27 AM

Thanks! It does look that in my case it could be left blank.