I've got a large user profile page that's managed by Panels. I would like to create a list of links (named anchors?) to the panes on the page at the top of the page so that someone viewing the page can easily click to see the section they want to view.

Is this possible? What's the best way to do it?

Comments

dmetzcher’s picture

I ended up adding a few panes with custom content in them, like this...

<div id="anchor-link-one"></div>

A few notes:

  1. Input format should be PHP code (to reduce the spacing between panes... see comments near the end below).
  2. Region Style should be set to "no style".
  3. Pane Style (for the pane containing the anchor) should be set to "no style".
  4. Other panes can use the "Rounded Corners" style or whatever style you want.

I then created a new pane near the top of the page that has links like this...

<div class="jump-links">
  [
  <a href="#anchor-link-one" title="Jump to this section">Section One</a> | 
  <a href="#anchor-link-two" title="Jump to this section">Section Two</a> | 
  <a href="#anchor-link-three" title="Jump to this section">Section Three</a>
  ]
</div>

I styled the "jump-links" class in my CSS file to make it look nice.

There's a little extra space between the panes on the page now as a result of the extra panes that I added, but I can live with it.

If there's a better way to do this, someone please let me know. Maybe there's a module I couldn't find.

An interesting feature would be to add an ID tag to each pane, using the title of the pane as the ID (so, "My Pane Title" would become "id=my-pane-title") so that the user only needs to create a pane that contains the links to each ID/section. This would make adding extra panes unnecessary and eliminate the extra space between panes/sections that they create. Should we change this to a feature request, or create a new one?

emp_ne’s picture

Hello, have you found any other solution?
I have the same intension, even more - to have a possibility to use this summary outside of a panel.

dmetzcher’s picture

The only solution I found was to create the jump links at the top of the panel page. It's not perfect, but it works ok. I doubt most people are even using it on my site, but it's there if they want it and it looks pretty good.

Letharion’s picture

Category: support » feature
Status: Active » Postponed

Sounds interesting. Moving to postponed until some wants to work on it.

japerry’s picture

Issue summary: View changes
Status: Postponed » Closed (won't fix)