Start a new topic
Solved

Select multiple categories for upload form

I would like to allow uploaders to select multiple categories for a new upload. For example, I want them to be able to select: "Texts", "Exams", and "Second Year Bachelor". How can I allow that?

1 Comment

you can simply achieve this with the little modification in includes/config/uploader/frontend_post.php find the following code


  

$options['_config']['post_category'] = array(
			'label'			=> __('Category', 'exc-uploader-theme'),
			'type'			=> 'select',
			'attrs' 		=> array(
									'class'	=> 'form-control'
								),

			'options'		=> exc_get_categories_list( array( 'hide_empty' => 0 ) ),
			'validation'	=> 'required',
			'layout'		=> 'uploader/dropdown',
		);

  


And add 'multiple' => 'multiple' in attributes array something following


  

$options['_config']['post_category'] = array(
			'label'			=> __('Category', 'exc-uploader-theme'),
			'type'			=> 'select',
			'attrs' 		=> array(
									'multiple'		=> 'multiple',
									'class'	=> 'form-control'
								),

			'options'		=> exc_get_categories_list( array( 'hide_empty' => 0 ) ),
			'validation'	=> 'required',
			'layout'		=> 'uploader/dropdown',
		);

  


1 person likes this
Login or Signup to post a comment