Click or drag to resize

IModuleSetupSetUrls Method

Set the URLs associated with the module.

Namespace:  AskiaPortalCmn.Setup
Assembly:  AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax
void SetUrls(
	IDictionary<ModuleUrlTo, string> urls
)

Parameters

urls
Type: System.Collections.GenericIDictionaryModuleUrlTo, String
URLs to set.
Remarks
During the update all URLs will be removed and add again using the specified URLs.
Examples
// Set URLs of the module
moduleSetup.SetUrls(new Dictionary<ModuleUrlFor, string>
{
    {ModuleUrlTo.ModulePage, ""},
    {ModuleUrlTo.ModuleLogo, "img/logo.svg"},
    {ModuleUrlTo.ModuleLogoHover, "img/logo-hover.svg"},
    {ModuleUrlTo.AdminUserPage, "admin/User/"},
    {ModuleUrlTo.AdminUserProfilePage, "admin/UserProfile/"},
    {ModuleUrlTo.AdminSurveyPage, "admin/Survey/"},
    {ModuleUrlTo.AdminSurveyUserPage, "admin/SurveyUser/"},
    {ModuleUrlTo.AdminSurveyGroupage, "admin/SurveyGroup/"}
});
See Also