Tagged: accordeon, direct link, tab section, toogle
Hi There,
I am using a tab section. In one tab I am using an accordean element (to display a FAQ).
For the tab section and the accordeon/toggle element I am using pretty urls.
Is there a way to have a direct url like my-website.com/#my-tab-section-for-faq/#question-3-faq somehow?
For now I can only redirect to my-website.com/#question-3-faq and then the navigation menu of the tab section is not displayed, only the content of that faq but no other tab item are visible.
Or I have to redirect to my-website.com/#my-tab-section-for-faq/
Thanks in advance for your help,
Hey eldrico,
Thank you for the inquiry.
Unfortunately, this is not possible by default because both the tab section and the accordeon element relies on the anchor for activation. You may need to hire a freelance developer to modify the default behavior of the accordeon element so that an item opens or activates based on a query parameter.
Example:
https://site.com/5-ifpnl/v-ressources/#faq?toggle_id=1
The developer will have to create a script that retrieves the value of the toggle_id parameter and open the corresponding toggle or accordeon item based on its value.
Best regards,
Ismael
Hi Ismael,
Thanks for your answer. It’s a bit a shame that it can’t be done as the tab section is useful to display any kind of page content. It’s a really useful way to display the huge contents of a page, instead of scrolling for hours.
But I understand.
No plan to work on that in any kind of future?
Thanks,
Have a nice day Ismael,
eldrico