Example #1
0
 public MoveItemToDateFolderPlugin()
 {
     _PluginOptions    = new PluginOption[4];
     _PluginOptions[0] = new PluginOption("Enable moving items to Date folders :", "False", PluginOptionTypes.CheckBox);
     _PluginOptions[1] = new PluginOption("First folder date format options:", "yyyy", PluginOptionTypes.TextBox);
     _PluginOptions[2] = new PluginOption("Second folder date format options (if omitted no folder will be created):", "MMMM", PluginOptionTypes.TextBox);
     _PluginOptions[3] = new PluginOption("Move items with template:", "Document", PluginOptionTypes.TextBox);
 }
Example #2
0
 public ContentFilteringPlugin()
 {
     _PluginOptions    = new PluginOption[4];
     _PluginOptions[0] = new PluginOption("Enable content filter:", "False", PluginOptionTypes.CheckBox);
     _PluginOptions[1] = new PluginOption("Requried field name:", "Status", PluginOptionTypes.TextBox);
     _PluginOptions[2] = new PluginOption("Requried field value containing:", "skal kopieres til nyt sdu website", PluginOptionTypes.TextBox);
     _PluginOptions[3] = new PluginOption("Field has to exist:", "False", PluginOptionTypes.CheckBox);
 }
        public CustomConverterPlugin()
        {
            _MethodInfos = GetConversionMethods();//Loading conversion methods using reflection.

            if (_MethodInfos != null && _MethodInfos.Count > 0)
            {
                int numberOfPluginOptions = 1 + _MethodInfos.Count;
                _PluginOptions    = new PluginOption[numberOfPluginOptions];
                _PluginOptions[0] = new PluginOption("Custom Converter:", "False", PluginOptionTypes.CheckBox);

                int currentIndex = 1;
                foreach (string key in _MethodInfos.Keys)
                {
                    _PluginOptions[currentIndex] = new PluginOption(key, "Enable", PluginOptionTypes.CheckBox);
                    currentIndex++;
                }
            }
        }
        public FieldConverterPlugin()
        {
            _MethodInfos = GetConversionMethods();//Loading conversion methods using reflection.

            if (_MethodInfos != null && _MethodInfos.Count > 0)
            {
                int numberOfPluginOptions = 3 + _MethodInfos.Count;
                _PluginOptions    = new PluginOption[numberOfPluginOptions];
                _PluginOptions[0] = new PluginOption("Field Converter:", "False", PluginOptionTypes.CheckBox);
                _PluginOptions[1] = new PluginOption("TemplateName(comma sep.):", "", PluginOptionTypes.TextBox);
                _PluginOptions[2] = new PluginOption("FieldName:", "", PluginOptionTypes.TextBox);

                int currentIndex = 3;
                foreach (string key in _MethodInfos.Keys)
                {
                    _PluginOptions[currentIndex] = new PluginOption(key, "Enable", PluginOptionTypes.CheckBox);
                    currentIndex++;
                }
            }
        }
 public MoveBranchItems()
 {
     _PluginOptions    = new PluginOption[1];
     _PluginOptions[0] = new PluginOption("Enable transform masters to branch items:", "False", PluginOptionTypes.CheckBox);
 }
Example #6
0
 public IconPathConverterPlugin()
 {
     _PluginOptions    = new PluginOption[1];
     _PluginOptions[0] = new PluginOption("Enable IconPathConverter:", "False", PluginOptionTypes.CheckBox);
 }
 public GoogleTranslatePlugin()
 {
     _PluginOptions    = new PluginOption[2];
     _PluginOptions[0] = new PluginOption("Enable Google autotranslation:", "False", PluginOptionTypes.CheckBox);
     _PluginOptions[1] = new PluginOption("ID that is added to translated texts:", "*AUTOTRANSLATED*", PluginOptionTypes.TextBox);
 }