Exemple #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ucFile.ObjectID   = CurrentAction.ActionID;
        ucFile.ObjectType = ObjectType;
        ucFile.Category   = CMSConstants.OBJECT_CATEGORY_THUMBNAIL;

        ucIcon.ObjectID   = CurrentAction.ActionID;
        ucIcon.ObjectType = ObjectType;
        ucIcon.Category   = CMSConstants.OBJECT_CATEGORY_ICON;

        pnlImages.Visible = (formElem.Mode != FormModeEnum.Insert);

        if (!String.IsNullOrEmpty(AllowedObjects))
        {
            // Ensure correct allowed objects format
            CurrentAction.ActionAllowedObjects = ";" + AllowedObjects.Trim(';') + ";";
        }

        if (HideAllowedObjects)
        {
            aAlowedObjects.Visible = false;
        }
        else if (!RequestHelper.IsPostBack())
        {
            objectTypeSelector.ObjectType = CurrentAction.ActionAllowedObjects;
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        // Initialize redirection URL
        string url = UIContextHelper.GetElementUrl(ModuleName.ONLINEMARKETING, "ActionProperties", false);

        url = URLHelper.AddParameterToUrl(url, "objectid", "{%EditedObject.ID%}");
        url = URLHelper.AddParameterToUrl(url, "saved", "1");
        formElem.RedirectUrlAfterCreate = url;

        ucThumbnail.SetValue("IconCssFieldName", "ActionThumbnailClass");
        ucThumbnail.SetValue("Category", ObjectAttachmentsCategories.THUMBNAIL);

        ucIcon.SetValue("IconCssFieldName", "ActionIconClass");
        ucIcon.SetValue("Category", ObjectAttachmentsCategories.ICON);

        assemblyElem.BaseClassNames = (formElem.ObjectType == WorkflowActionInfo.OBJECT_TYPE_AUTOMATION) ? "CMS.Automation.AutomationAction, CMS.Automation" : "CMS.DocumentEngine.DocumentWorkflowAction, CMS.DocumentEngine";

        pnlImages.Visible = (formElem.Mode != FormModeEnum.Insert);

        if (!String.IsNullOrEmpty(AllowedObjects))
        {
            // Ensure correct allowed objects format
            CurrentAction.ActionAllowedObjects = ";" + AllowedObjects.Trim(';') + ";";
        }
    }
Exemple #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ucThumbnail.SetValue("IconCssFieldName", "ActionThumbnailClass");
        ucThumbnail.SetValue("Category", ObjectAttachmentsCategories.THUMBNAIL);

        ucIcon.SetValue("IconCssFieldName", "ActionIconClass");
        ucIcon.SetValue("Category", ObjectAttachmentsCategories.ICON);

        assemblyElem.BaseClassNames = (formElem.ObjectType == WorkflowActionInfo.OBJECT_TYPE_AUTOMATION) ? "CMS.Automation.AutomationAction, CMS.Automation" : "CMS.DocumentEngine.DocumentWorkflowAction, CMS.DocumentEngine";

        pnlImages.Visible = (formElem.Mode != FormModeEnum.Insert);

        if (!String.IsNullOrEmpty(AllowedObjects))
        {
            // Ensure correct allowed objects format
            CurrentAction.ActionAllowedObjects = ";" + AllowedObjects.Trim(';') + ";";
        }
    }