Create html anchor on headings within cards/pages/wikis

Completed

Comments

7 comments

  • Avatar
    Suzie Prince

    Hi Mike


    You should be able to use html link anchors.


    Example:


    If you create this heading:


    h2(#Title2). text


    Title2 will be the id for this section and can be linked to from other places in the same page like this:


    <a href="#Title2">Title 2</a>


    I hope that helps.


    - Suzie

    0
    Comment actions Permalink
  • Avatar
    Chris Jansen

    Is it possible to add an HTML link in a title heading? I tried this, but it didn't work:

        {% panel-heading %}(#Title2)Title 2{% panel-heading %}

    0
    Comment actions Permalink
  • Avatar
    Melissa Doerken

    Hey Chris,

    Panel headings don't support HTML links, but can I suggest you insert the link in one of our other headings (h1, h2, h3) and put the panel directly below? Then the viewer would be directed to the section with the panel in it. Here's what I mean (using a two-panel format):

     

    Screen_Shot_2012-11-20_at_4.47.09_PM.png

     

    Screen_Shot_2012-11-20_at_4.48.02_PM.png

     

    Let me know if that works as a workaround for you.

     

    Cheers,

    Melissa

    0
    Comment actions Permalink
  • Avatar
    Chris Jansen

    Hi Melissa,

    I ended up doing just what you suggested, although I removed the panel heading altogether since it would have duplicated the header above it.

    h2(#jsmith). John Smith

    {% dashboard-panel %}
      {% panel-heading %}{% panel-heading %}
      {% panel-content %}

    etc.

    Thanks for the response!

    Chris

    0
    Comment actions Permalink
  • Avatar
    Lisa

    Hi,

    I’m trying to use anchors but can’t make it work in the new editor. Anybody figured out how to do?

    /Lisa

    0
    Comment actions Permalink
  • Avatar
    Melissa Doerken

    Hi Lisa,

     

    Here's our help doc about how to create anchors in the new WYSIWYG editor. Let me know if you have any other questions.

     

    Cheers,

    Melissa

    0
    Comment actions Permalink
  • Avatar
    Lisa

    Thanks Melissa,

    Now I'll just have to wait until we've got 13.3 on the server (we're still on 13.2.2).

    /Lisa

    0
    Comment actions Permalink

Please sign in to leave a comment.