We need collapsible sections JS for Optimizely test

RESOLVED FIXED in 2013Q2

Status

support.mozilla.org
Knowledge Base Software
P1
normal
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: atopal, Assigned: rehan)

Tracking

unspecified
2013Q2

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: u=sumo-team c=wiki p=2 s=2013.9)

(Reporter)

Description

5 years ago
We want to test if collapsible sections give us better helpfulness ratings than the the really long articles that we have today. We'd like to use Optimizely to perform the test, and need to manipulate the page to look like this:

http://people.mozilla.org/~mverdi/mockups/article-layout1/

Two things are changed here:

1. There is no TOC (a TOC makes no sense when the sections are collapsed)
2. The content between <H1>s is collapsed

Please provide the JS for this so we can stick it into our Optimizely A/B test.
I talked with Rehan and this seems very doable. Making it 2pts in case it gets tricky.
Whiteboard: u=sumo-team c=wiki p= s=2013.9 → u=sumo-team c=wiki p=2 s=2013.9
(Assignee)

Updated

5 years ago
Assignee: nobody → rdalal
(Assignee)

Comment 2

5 years ago
Landed:
https://github.com/mozilla/kitsune/commit/570b1815b807db2e4b75afe38edda317ddb1a370

Pushed to prod by me, right now.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
(Reporter)

Comment 3

5 years ago
Rehan, can you explain what's happening in that commit? What I was talking to Ricky about was a piece of jquery that we could insert into the test on Optimalsort, It would add the necessary containers and handle the folding etc for our a/b test.
Flags: needinfo?(rdalal)
(In reply to Kadir Topal [:atopal] from comment #3)
> Rehan, can you explain what's happening in that commit? What I was talking
> to Ricky about was a piece of jquery that we could insert into the test on
> Optimalsort, It would add the necessary containers and handle the folding
> etc for our a/b test.

Oh, sorry we didn't explain how to use it :)

just call from js `k.makeWikiCollapsable();`

For example: http://cl.ly/image/3s2k2i0l3K3K

I assume that works?
(Reporter)

Comment 5

5 years ago
Oh, great :) Thanks!
(Assignee)

Comment 6

5 years ago
Killing the needinfo.
Flags: needinfo?(rdalal)
You need to log in before you can comment on or make changes to this bug.