Tagged: accordeon, direct link, tab section, toogle
-
AuthorPosts
-
July 26, 2021 at 8:43 pm #1312509
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,
July 29, 2021 at 9:55 am #1313190Hey 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=1The 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,
IsmaelJuly 29, 2021 at 10:44 am #1313202Hi 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
August 1, 2021 at 6:56 am #1313665 -
AuthorPosts
- You must be logged in to reply to this topic.
