• Resolved brunosalter

    (@brunosalter)


    Hello Bhaldie.
    I really like your plugin, after searching for a way to show documents in our website I sticked to yours.

    We have two folders/categories, A and B.
    A cat has subfolders and B none.

    The doc folder A needs to be shown in two ways;
    1) in subfolders by this shortcode [mdocs cat=”A”], this works fine

    2) And chronological, with all docs in a list without folders, a bit like All Files short code but with the ones in folder A.

    [mdocs cat=”All Files”] does this, it lists all files one after the other (not in a chronological way thou) but from All folders A and B.
    I need something like [mdocs cat=”A, All Files”], that i have tried but doesn’t show anything.

    Could you help me finding a workaround or a solution?, would wp categories help?
    Thanks, Bruno

    • This topic was modified 7 years, 2 months ago by brunosalter.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter brunosalter

    (@brunosalter)

    I sorted by date already

    Plugin Author bhaldie

    (@bhaldie)

    In the settings menu under “Table View Settings”, you are missing all the checkbox execept “Show File Size”. This looks to be a bug. Here is a solution that might help. Add this to your the file mdocs-patches.php on line 7:

    
    // 3.7.4 patch 1
    		register_setting('mdocs-patch-vars', 'mdocs-v3-7-4-patch-var-1');
    		add_option('mdocs-v3-7-4-patch-var-1',false);
    		if(get_option('mdocs-v3-7-4-patch-var-1') == false && is_array(get_option('mdocs-list'))) {
    			$dispay_array = array();
    			$display_array['show-description'] = array(
    				'slug' => 'desc',
    				'text' => 'Description',
    				'icon' => '',
    				'color' => '',
    				'function' => 'mdocs_display_description',
    			);
    			$display_array['show-downloads'] = array(
    				'slug' =>  'downloads',
    				'text' =>  'Downloads',
    				'icon' =>  'fa fa-cloud-download',
    				'color' =>  'mdocs-orange',
    				'function' =>  'mdocs_display_downloads',
    				'show' =>  '1',
    			);
    			$display_array['show-version'] = array(
    				'slug' =>  'version',
    				'text' =>  'Version',
    				'icon' =>  'fa fa-power-off',
    				'color' =>  'mdocs-blue',
    				'function' =>  'mdocs_display_version',
    				'show' =>  '1',
    			);
    			$display_array['show-author'] = array(
    				'slug' =>  'owner',
    				'text' =>  'Owner',
    				'icon' =>  'fa fa-pencil',
    				'color' =>  'mdocs-green',
    				'function' =>  'mdocs_display_owner',
    				'show' =>  '1',
    			);
    			$display_array['show-real-author'] = array(
    				'slug' =>  'real-author',
    				'text' =>  'Author',
    				'icon' =>  '',
    				'color' =>  '',
    				'function' =>  'mdocs_display_real_author',
    			);
    			$display_array['show-update'] = array(
    				'slug' =>  'modified',
    				'text' =>  'Last Modified',
    				'icon' =>  'fa fa-calendar',
    				'color' =>  'mdocs-red',
    				'function' =>  'mdocs_display_updated',
    				'show' =>  '1',
    			);
    			$display_array['show-ratings'] = array(
    				'slug' =>  'rating',
    				'text' =>  'Rating',
    				'icon' =>  '',
    				'color' =>  '',
    				'function' =>  'mdocs_display_rating',
    				'show' =>  '1',
    			);
    			$display_array['show-download-btn'] = array(
    				'slug' =>  'download',
    				'text' =>  'Download',
    				'icon' =>  'fa fa-download',
    				'color' =>  '',
    				'function' =>  'mdocs_display_download_btn',
    			);
    			$display_array['show-file-size'] = array(
    				'slug' =>  'file-size',
    				'text' =>  'File Size',
    				'icon' =>  'fa fa-database',
    				'color' =>  '',
    				'function' =>  'mdocs_display_file_size',
    			);
    			$show_options = get_option('mdocs-displayed-file-info');
    			foreach($display_array as $key => $show_array) {
    				if(!key_exists($key, $show_options)) {
    					$show_options[$key] = $show_array;
    				}
    			}
    			update_option('mdocs-displayed-file-info', $show_options);
    			update_option('mdocs-v3-7-4-patch-var-1', true);
    		}
    
    • This reply was modified 7 years, 1 month ago by bhaldie.
    Plugin Author bhaldie

    (@bhaldie)

    this issue should be resolved in version 3.7.4

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Show All files in a Folder without subfolders’ is closed to new replies.