Opened 7 years ago

Closed 5 years ago

#223 closed Enhancement (Fixed)

Control over section default display, expanded or collapsed

Reported by: Lois Haggard Owned by: Testing
Priority: +Medium Milestone: 2.3 - Development
Component: View-App Version: 2.3
Severity: Minor Effort Keywords:
Cc:

Description

There used to be an <EXPANDED/> element for sections. It would be nice to be able to control whether section elements initially display expanded or collapsed.

Example uses:

For EPHT, they'd like to start with the Overview section collapsed, because in their small screen display, that is all the user sees.

For pages with only one section (such as the attached NM community selection page) it seems silly to require the user to click to open the only available section bar.

Attachments (1)

temp.PNG (19.8 KB) - added by Lois Haggard 7 years ago.

Download all attachments as: .zip

Change History (9)

Changed 7 years ago by Lois Haggard

Attachment: temp.PNG added

comment:1 Changed 7 years ago by Lois Haggard

Version: Unknown2.2

comment:2 Changed 7 years ago by Garth Braithwaite

Owner: set to Garth Braithwaite

For HTML_CONTENT there's a SELECTION/SHOW element that does this but nothing like this (or EXPAND) was ever implemented for query selections or modules. For QMs the code did use script and cookies so that the user could specify if they wanted the overview to show and it allowed them to control how they wanted the step selections to auto show/close etc.

I've looked into changing the core XSLT code to auto expand but there are too many issues with doing that. It make sense to do this for the query selection pages so it will be implemented.

I'm currently working the core SELECTION type code and am will look into/try a "SHOW" element flag.

Last edited 7 years ago by Garth Braithwaite (previous) (diff)

comment:3 Changed 7 years ago by Lois Haggard

I just tried using the <SHOW/> element, and it worked with the <ibis:ExpandableSection> element in content_html. So...

<ibis:ExpandableSection><SHOW/>

...causes the page to come up with that section expanded. Cool. Thanks for looking into more options for this.

comment:4 Changed 6 years ago by Garth Braithwaite

Milestone: Unassigned2.2 - Testing
Owner: changed from Garth Braithwaite to Lois

comment:5 Changed 6 years ago by Lois Haggard

Milestone: 2.2 - Testing2.3 - Development
Priority: Unknown+Medium
Version: 2.22.3

comment:6 Changed 6 years ago by Garth Braithwaite

To address the 2nd part of this ticket (NM EPHT wanting to not expand the "overview") XSLT code was added to the BuilderForm?.xslt that supports passing an HTTP request param named "SectionToShow?". The default is not to have any section expanded.

To expand a given section simply add "?SectionToShow?=1" or "?SectionToShow?=overviewSection" to the request URL. Examples:

http://localhost/ibisph-view/query/builder/form/pop/PopMain/Count.html?SectionToShow=sectionOverview

http://localhost/ibisph-view/query/builder/form/pop/PopMain/Count.html?SectionToShow=2

The param can also be overridden in the ss.xslt to set a default. Another solution is to use a jquery script like (untested):

$("#sectionOverview").attr('checked', false);

SVN: 5977.

comment:7 Changed 6 years ago by Garth Braithwaite

Owner: changed from Lois to Testing
Severity: UnknownMinor Effort

comment:8 Changed 5 years ago by Lois Haggard

Resolution: Fixed
Status: newclosed
Note: See TracTickets for help on using tickets.