Content
Expanded categories in Documents
Added by Nil Franch Masdeu over 7 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] %>
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