erdmannfreunde/onepage-navigation

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

Installs: 17 986

Dependents: 1

Suggesters: 0

Security: 0

Stars: 6

Watchers: 4

Forks: 4

Language:JavaScript

Type:contao-bundle

2.1.4 2024-01-26 12:41 UTC

This package is auto-updated.

Last update: 2024-05-26 13:32:11 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 js_onepage_navigation.html5 in your site 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}}