using System; using System.Data; using System.Collections; using CMS.FormControls; using CMS.SettingsProvider; using CMS.GlobalHelper; using CMS.SiteProvider; using CMS.UIControls; using CMS.DocumentEngine; public partial class CMSModules_Objects_FormControls_Cloning_CMS_DocumentAliasSettings : CloneSettingsControl { #region "Properties" /// /// Gets properties hashtable. /// public override Hashtable CustomParameters { get { return GetProperties(); } } /// /// Hides code name. /// public override bool HideCodeName { get { return true; } } #endregion #region "Methods" protected void Page_Load(object sender, EventArgs e) { if (!RequestHelper.IsPostBack()) { urlElem.URLPath = InfoToClone.Generalized.GetUniqueCodeName(); } } /// /// Returns properties hashtable. /// private Hashtable GetProperties() { Hashtable result = new Hashtable(); result[DocumentObjectType.DOCUMENTALIAS + ".aliasurlpath"] = urlElem.URLPath; return result; } #endregion }