• Resolved tallgrass

    (@zipline)


    First off let me tell you how glad I am to find a plugin like M-docs. I have a fussy client that I have been supporting for 15+ years now. They have a number of complicated docs online that undergo frequent revisions. They email revisions to me in batches and I spend hours trying to sort them out and get them updated properly online. M-docs is going to relieve me of that duty and allow them to do everything by themselves. YAY!

    But, I did say they were fussy. There are three things bugging them right now that I hope you can help me with. The most serious is the sort order of the docs on the web page. Docs are not sorted by name, date, author, etc. They are sorted in a custom order. Right now I am sorting them by placing a number in front of the file name. My client doesn’t like that corruption of their file name. How can I sort them in a custom order?

    Item #2 may seem silly but it’s important to my client. The little sort header above the file list which says ‘Name’ is confusing to them. They think it’s field requesting a name input. Can I just remove that header altogether since I won’t need it for sorting anyway?

    And lastly, on their old website when a user clicked on a doc link it took them directly to a preview of the doc (all pdf’s) which had a print button. Important, because many of these docs are forms which will be printed and filled in with a pen. Eventually we will want to fill them in online, then print. M-docs will give a Google preview of the doc but no print button. If I ‘Pop Out’ the doc I get the preview we are used to seeing. Most of the users of this site will get totally lost though if a print button doesn’t immediately hit them between the eyes. Is there a work-around for this?

    I can see how much work you have put into this plugin. It’s very close to perfect for what I’m doing. Thanks a lot. Don’t see a paid version or Donate button though. How can I contribute?

    https://www.ads-software.com/plugins/memphis-documents-library/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author bhaldie

    (@bhaldie)

    thanks for the comments @zipline. To donate there is a donate button on the top right hand side of the dashboard settings menu.

    I will try and answer all you questions:

    #1 Yes that does make sense I will add it to my feature request list and try and get to it as soon as possible.

    #2 I wil also add this to the feature list, but for now you can edit the code, open up the file mdocs-the-list.php goto line 44 and comment out this:

    <tr class="hidden-sm hidden-xs">
    			<?php if(is_admin()) { ?> <th id="batch"><input type="checkbox" name="mdocs-batch-select-all" id="mdocs-batch-select-all"/></th> <?php  $num_tds++; } ?>
    			<th class="mdocs-sort-option" data-disable-user-sort="<?php echo $disable_user_sort; ?>" data-sort-type="name" data-current-cat="<?php echo $current_cat; ?>" data-permalink="<?php echo $permalink; ?>"><?php _e('Name','mdocs'); ?><?php if($mdocs_sort_type == 'name') echo $mdocs_sort_style_icon; ?></th>
    			<?php if(get_option('mdocs-show-downloads')) { $num_tds++; ?>
    			<th class="mdocs-sort-option" data-disable-user-sort="<?php echo $disable_user_sort; ?>" data-sort-type="downloads" data-current-cat="<?php echo $current_cat; ?>" data-permalink="<?php echo $permalink; ?>"><?php _e('Downloads','mdocs'); ?><?php if($mdocs_sort_type == 'downloads') echo $mdocs_sort_style_icon; ?></th><?php } ?>
    			<?php if(get_option('mdocs-show-version')) { $num_tds++; ?>
    			<th class="mdocs-sort-option" data-disable-user-sort="<?php echo $disable_user_sort; ?>" data-sort-type="version" data-current-cat="<?php echo $current_cat; ?>" data-permalink="<?php echo $permalink; ?>"><?php _e('Version','mdocs'); ?><?php if($mdocs_sort_type == 'version') echo $mdocs_sort_style_icon; ?></th><?php } ?>
    			<?php if(get_option('mdocs-show-author')) { $num_tds++; ?>
    			<th class="mdocs-sort-option" data-disable-user-sort="<?php echo $disable_user_sort; ?>" data-sort-type="owner" data-current-cat="<?php echo $current_cat; ?>" data-permalink="<?php echo $permalink; ?>"><?php _e('Owner','mdocs'); ?><?php if($mdocs_sort_type == 'owner') echo $mdocs_sort_style_icon; ?></th><?php } ?>
    			<?php if(get_option('mdocs-show-update')) { $num_tds++; ?>
    			<th class="mdocs-sort-option" data-disable-user-sort="<?php echo $disable_user_sort; ?>" data-sort-type="modified" data-current-cat="<?php echo $current_cat; ?>" data-permalink="<?php echo $permalink; ?>"><?php _e('Last Modified','mdocs'); ?><?php if($mdocs_sort_type == 'modified') echo $mdocs_sort_style_icon; ?></th><?php } ?>
    			<?php if(get_option('mdocs-show-ratings')) { $num_tds++; ?>
    			<th class="mdocs-sort-option" data-disable-user-sort="<?php echo $disable_user_sort; ?>" data-sort-type="rating" data-current-cat="<?php echo $current_cat; ?>" data-permalink="<?php echo $permalink; ?>"><?php _e('Rating','mdocs'); ?><?php if($mdocs_sort_type == 'rating') echo $mdocs_sort_style_icon; ?></th><?php } ?>
    		</tr>

    #3 Another good point I will add to the feature request list.

    Thread Starter tallgrass

    (@zipline)

    Excellent! #2 work-around is good. One down, two to go. Thanks.

    thanks, these are good proposals which I also need. Actually, I’m not getting the sort order done by date. I have a press archive and have imported a lot of press articles from the last 7 years. I put them in yearly subfolders and tried to get the correct order (by date) by using the “date modified” field as the date of the appearance of the press article.
    But it’s not being sorted by date, it’s always sorted by name although in preferences I put “sort by last modified”.

    • This reply was modified 8 years, 5 months ago by muxipups.
    Plugin Author bhaldie

    (@bhaldie)

    try checking the disable sort and tell me what happens.

    perfect, this works! As I dont need the user sort option, that’s sufficient for me ??

    Plugin Author bhaldie

    (@bhaldie)

    okay glad it works ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Sort order, block header, preview’ is closed to new replies.