Accordion Layout web part. How to open with querystring

paul krysiak asked on February 13, 2017 20:00

Hello Everyone
Is there a way to make the Accordion Layout widget recognize a query-string ( or something else) to automatically open up?
I see I can set one of the panes to automatically open in the widget configuration but I don't see anyplace for the control to accept a dynamic parameter. Any ideas?
Thanks
Paul

Correct Answer

Peter M answered on February 13, 2017 20:20

You can do with macro: put into "Active Pane index" property of accordion Layout web part: {%QueryString["PaneNumber"]#%}

Then to open the second pane you can try :

yoursite.com/YourAccordionPage?PaneNumber=2
Image Text

0 votesVote for this answer Unmark Correct answer

Recent Answers


Zachary Perry answered on February 13, 2017 20:16

If you open the properties for the accordion layout web part, there is a field called active pane index. If you click the caret to the left of the textbox field, you can enter a macro., something like {% Querystring.GetValue("QueryStringName") %}

0 votesVote for this answer Mark as a Correct answer

paul krysiak answered on February 13, 2017 20:48

Thanks for the speedy reply.
I was wrong about the cms version.
It happens to be 8.1 and I don't see that option.

0 votesVote for this answer Mark as a Correct answer

Peter M answered on February 13, 2017 21:01 (last edited on February 13, 2017 21:20)

You've probably clicked on one of the panes, you have to click configure on "accordion Layout"

configure

I have 8.2 and it is there

0 votesVote for this answer Mark as a Correct answer

paul krysiak answered on February 13, 2017 21:28

This is what i am looking at.
Maybe that would help?
I can only put 11 characters in the box and that triangle doesn't seem to appear like the other pictures I have seen. Image Text

0 votesVote for this answer Mark as a Correct answer

Peter M answered on February 13, 2017 21:45 (last edited on February 13, 2017 21:47)

Now I see what you are saying. if you look at my first screenshot above you'll see that I have this little triangle before the text box (actually it is cross because a value is entered, but I have these triagnles before all the input controls), if I click on any of triagnles it will open a popup dialog where I can put a whole crazy macro program if I want to. In you case there is no triangle and text box forces you to enter only numbers here :(.

I have 8.2 version and Enterprise marketing solution full version (I have these "triangles" everywhere and I've had them in 6, 7 etc). My guess is that you Kentico installation is somehow limited. If upgrade is not an option you can always get the same results with repeater and for instance boostrap accordion.

0 votesVote for this answer Mark as a Correct answer

paul krysiak answered on February 13, 2017 22:07

Peter
Redoing it in javascript was going to be the fallback.
I'll just see if they will upgrade to 8.2, it will make things way easier!

Thank Everyone for you help!!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.