Creating an anchor link that automatically expands content

This topic is: resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Evan Herman 9 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3322

    amandala
    Participant

    I’d like to create an anchor link on one page that links to hidden content on another page so that when you click the link, it will automatically jump to the hidden content in the expanded state.

    Currently, an anchor link within the hidden content is just bringing me to the closed link.

    Can you please tell me if there’s a way to do this?

    Thanks!

    Amanda

    #3324

    Evan Herman
    Keymaster
    Post count: 568

    Hi Amanda,

    Out of the box, there is no easy way to achieve this. One way you can go about achieving this is by passing a query parameter along to the new page, so for example if you are on http://www.page.com and linked to a separate page you would need to pass a long some sort of parameter in the URL that would tell the new page what to expand, by passing a long the element ID or class. ie: http://www.page.com/newpage?expand=#idofexpandedcontent

    The difficulty would come in parsing out the parameter from the URL, and then executing some javascript to expand the appropriate content.

    In short, it’s not easily performed with out of the box functionality but it can be achieved with some know how and tweaking.

    Thanks,
    Evan

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.