Picture of Barry Jenkin
Remove 'All' tab in Resources
by Barry Jenkin - Wednesday, 18 April 2018, 3:46 AM
 

I have a course that's using all types of documents in the Resources drawer: media, documents and links.

By default the drawer, on first opening, displays all resource items under an 'All' tab which in my case creates a big daunting list. I would like to remove this and have my first child tab (in my case 'Documents' tab) to be the default select-state tab when opening Resources. I can obviously hide the All tab using css but need to get the child tab selected so it displays on opening.

Is there a simple way of achieving this in the plugin code / css?

Picture of Aaron Collier
Re: Remove 'All' tab in Resources
by Aaron Collier - Tuesday, 15 May 2018, 1:03 PM
 

In the basic resources.hbs file, the button for all has "selected" as a part of its class. If you moved that to the document button, that might do the trick.

<button class="base resources-show-all selected" data-filter="all" aria-label="{{model._filterAria.allAria}}" tabindex="0">
<button class="base resources-show-document selected" data-filter="document" aria-label="{{model._filterAria.documentAria}}" tabindex="0">