Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Development
  1. OpenProject
  2. Forums
  3. Development
  4. Expanded categories in Documents

Expanded categories in Documents

Added by Nil Franch Masdeu about 8 years ago

Hello,

We have been using the Documents plugins extensively, so we have a large number of Document categories, each with plenty of documents inside.

When we load the Documents page, all the categories are expanded, which seems to make it difficult for our teams to navigate the page (not enough computer savvy to use CTRL+F). We think that simply making the webpage load with all the categories collapsed would make it better.

We tried changing in ….openproject-documents/app/views/documents/index.html.erb, the line:

<% grouped.keys.sort.each do |group| %> <collapsible-section initially-expanded="*true*" section-title="<%= group %>"> <div class="document-category--inner-section"> <div class="form--field document-category-elements"> <%= render :partial => 'documents/document', :collection => grouped[group] %>

\<% end %\>

Setting collapsible-section initially-expanded to false, but after restarting, while the page has this changed in its code, the categories are still expanded. Now, we don’t have any experience with web developing nor ruby or javascript, so we would be thankful to have some guidance: do we need to change something else to make categories start closed?

Thank you very much


Loading...