Link to and automatically open a toggler on another page
Posted: Sun Oct 30, 2022 8:54 pm
Hello all!
I have a situation where we have a single page with about 30 or so different C# code snippets. We have other pages that contain the main C# examples, and the page with all of the code snippets is just supporting code. Right now I have each code snippet set up with an H2 heading. Its a very long page, but from the main code pages, I have links that go to the specific related code snippet on the page with all of the snippets. This works, but the page itself can be a little intimidating because of so many H2 sections with so many (mostly unrelated code snippets). Each main code page might only reference 1-3 snippets on the snippet page.
What I'd like to do is turn all of these H2 sections into togglers, but I haven't yet been able to figure out how link to a specific code snippet on the snippet page AND open the toggler that I'm linking to.
Just throwing this out there hoping someone has an idea.
Thanks!
Barb
I have a situation where we have a single page with about 30 or so different C# code snippets. We have other pages that contain the main C# examples, and the page with all of the code snippets is just supporting code. Right now I have each code snippet set up with an H2 heading. Its a very long page, but from the main code pages, I have links that go to the specific related code snippet on the page with all of the snippets. This works, but the page itself can be a little intimidating because of so many H2 sections with so many (mostly unrelated code snippets). Each main code page might only reference 1-3 snippets on the snippet page.
What I'd like to do is turn all of these H2 sections into togglers, but I haven't yet been able to figure out how link to a specific code snippet on the snippet page AND open the toggler that I'm linking to.
Just throwing this out there hoping someone has an idea.
Thanks!
Barb