• Resolved codeward

    (@codeward)


    Hi there, was going through to find a fix, but this one eludes me.

    After selecting a category/folder and the list shows; I select “Name” for example; whereas it should sort by name, but it reloads the page with “?mdocs-cat=” at the end of the url, but no category selected resulting in the default documents category being selected. I can manually add a category in the url (i.e.: ?mdocs-cat=PR-E), and it works until I switch categories; however I don’t see an everyday user thinking/knowing to do this.

    I tried making a change to the mdocs-the-list.php (line 16-17), but didn’t seem to affect it so not sure if this is taking place elsewhere, or if it’s just not picking up the category/folder currently selected.

    • This topic was modified 8 years, 4 months ago by codeward.
Viewing 2 replies - 16 through 17 (of 17 total)
  • Plugin Author bhaldie

    (@bhaldie)

    Here’s the fix if you want to implement it now replace this line in the mdocs-the-list.php file:

    
    if(isset($_GET['mdocs-cat'])) $permalink = $permalink.$_GET['mdocs-cat'];
    

    with this:

    
    $permalink = $permalink.$current_cat_array['slug'];
    

    this will fix the issue, which will now add the slug to every url.

    Plugin Author bhaldie

    (@bhaldie)

    this functionality has been added to version 3.6.6

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Sort not functioning properly’ is closed to new replies.