erdmannfreunde/onepage-navigation

This extension for Contao CMS adds a new type of navigation to create onepage navigations that are scrolled automatically.

Installs: 10 765

Dependents: 1

Suggesters: 0

Security: 0

Stars: 7

Watchers: 3

Forks: 3

Language:JavaScript

Type:contao-bundle

1.1.9 2022-02-25 12:16 UTC

This package is auto-updated.

Last update: 2022-07-05 11:48:31 UTC


README

Function

This extension for Contao Open Source CMS allows you to create a article navigation that can be used to build onepage navigations. It can be used just like a normal navigation but scrolls smoothly between the links within a page automatically rather than redirecting to another page.

Usage

  • Each article has a new area where the onepage navigation settings can be edited
  • Each article can be activated to be a navigation item
  • a new frontend module needs to be created (type: 'Article navigation (Onepage)')
  • place the module on the page (layout or as content element)
  • activate jQuery in your layout

InsertTags

  • {{scroll::[article-id]::[myCustomLinkTitle]}}
    • [article-id] = article id this link should scroll to
    • [myCustomLinkTitle] = text to be displayed as the link
    • Example: {{scroll::contact::Email us}}

Acknowledgement

This extension is inspired and based on onepage-navigation by Sascha Brandhoff. It's been adapted and rewritten for Contao 4.x as a symfony bundle.