Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Link directly to panel in one page template

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi,
If I've enabled one page template, is there a way to link directly to a panel on the site.
I've tried anchors, which sort of works, but the panel is at the top of the browser window, underneath the sticky menu, so you can't see the first 50px of the content.

I also noticed that there are anchors in the layout code and I tried those but same problem...

Would love a solution that doesn't involve more code, etc.

Thanx

Mark
  • marklandry's Avatar
  • marklandry
  • 12 Month basic
  • 4 posts
  • Karma: 0
The administrator has disabled public write access.
Can you add a link for the site with the panel published?

I think it would require some code changing

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Yeah, I know there's a jquery plugin for this but would like to avoid it.

Anyway, here's a link with the anchor so you can see it in action:
tantomedia.com/cityunite/#whatwedo

The default system link is:
tantomedia.com/cityunite/#grid2-link but the same thing happens when I use this link.


I've tried adding a span at the top of the content with negative top margin but can't get this to work either.
  • marklandry's Avatar
  • marklandry
  • 12 Month basic
  • 4 posts
  • Karma: 0
Last Edit: 10 years 3 months ago by marklandry.
The administrator has disabled public write access.
Hey Mark,

Do you mean just a row on the page?

If so this should just work:

<a href="#grid3-link">Resources</a>

If its a new row you need to adjust the ajavascript a little. At the moment it's designed to just apply scroll to menu items in the nav area.

hope that helps.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
That works unless the menu is sticky, then the menu overlaps the top part of the page...
  • marklandry's Avatar
  • marklandry
  • 12 Month basic
  • 4 posts
  • Karma: 0
The administrator has disabled public write access.
Hi,

I think you would need to add a top margin to the anchor links like this.
a#grid3-link:before {
    content:"";
    display:block;
    height:50px;
    margin:-30px 0 0;
}

Regards,

Rob
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers