#360 closed enhancement (fixed)
Make subsections on view pages hideable
Reported by: | Nicklas Nordborg | Owned by: | Martin Svensson |
---|---|---|---|
Priority: | minor | Milestone: | BASE 2.13 |
Component: | web | Version: | |
Keywords: | Cc: |
Description
Some view pages for items have lots of information on them and they can get quite big. For example the view page for a role lists all members of that role. The view page for a plugin lists all configurations and job agents for that plugin.
It would be nice to have a feature that can hide/show those sections on demand. The setting should be remembered during the login session and possibly also between sessions. It should be easy enough to implement something in ItemContext that can store the settings. It would require a bit more work to check all view pages and implement the show/hide functionality.
Change History (10)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
It is simple to include on a page with the help of a taglib. Example from the test implementation on the View -> Array designs page (when viewing a single array design):
<base:section id="batches" title="<%="Array batches (" + batches.size() +")"%>" context="<%=cc%>" > Contents of section is here </base:section>
A few notes:
- The taglib uses an ItemContext (=cc in the code above) to get the current show/hide status
- When the user toggles the section it sends an Ajax request to the server that updates the context with the new status
- Thus, the status is remembered during the session and between sessions
- If the section inludes a list of things it looks better if the title includes the number of items in the list
- The id attribute should be unique for a given context
- The taglib can be used without context. See the javadoc for more info. The status will not be automatically remembered without a context.
comment:3 by , 17 years ago
comment:4 by , 15 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:5 by , 15 years ago
comment:6 by , 15 years ago
Milestone: | BASE 2.x+ → BASE 2.13 |
---|
comment:7 by , 15 years ago
comment:8 by , 15 years ago
comment:9 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(In [3610]) References #360: Make subsections on view pages hideable
Infrastructure is now in place. See below for examples.