2017 © Pedro Peláez
 

contao-bundle contao-overscroll-bundle

This bundle offers overscroll functionality (as often used on news websites) for Contao pages.

image

heimrichhannot/contao-overscroll-bundle

This bundle offers overscroll functionality (as often used on news websites) for Contao pages.

  • Friday, November 24, 2017
  • by digitales@heimrich-hannot.de
  • Repository
  • 6 Watchers
  • 0 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

Contao Overscroll Bundle

This bundle offers overscroll functionality (as often used on news websites) for Contao pages., (*1)

alt preview, (*2)

Features

  • add a mimic content area after the regular content of your pages
  • add an animated circle progress bar that changes on scroll event
  • after overscrolling this mimic area, some url is opened

Technical instructions

1. This bundle depends on heimrichhannot/contao-blocks for specifying on which pages (and under which circumstances) the overscroll area is shown. Hence the first step is to create a block and inside a block module where you can configure the overscroll area to your needs:, (*3)

alt block, (*4)

alt block config, (*5)

2. After that you have to define the necessary custom section (ATTENTION: The ID of the section has to be "overscroll") and link the block created above in this section., (*6)

alt block config, (*7)

3. If you want to add custom sections (sections other than header, left, right, main and footer) to the overscrolling area, you'll have to create contao frontend templates named section_<name>.html5for each of these areas. Example:, (*8)

```
<?php if ($this->quicksearch): ?>
    <!-- indexer::stop -->
    <div id="quicksearch">
        <div class="inside">
            <?= $this->quicksearch ?>
        </div>
    </div>
    <!-- indexer::continue -->
<?php endif; ?>
```

4. Finally put the overscroll section into your fe_page.html5:, (*9)

```
<?php if ($this->sections['overscroll']): ?>
    <?= $this->sections['overscroll'] ?>
<?php endif; ?>
```

Optional:, (*10)

5. The JavaScript and CSS assets of this bundle are organized using heimrichhannot/contao-components. Hence you can easily switch them on or off in your layout under "Disable components"., (*11)

Hooks

Name Arguments Expected return value Description
adjustOverscroll $frontendTemplate, $blockModule, $page, $layout - Adjust the overscroll element by manipulating $frontendTemplate (see HeimrichHannot\OverscrollBundle\EventListener\HookListener::renderOverscrollBlock() on what is configurable)

The Versions

24/11 2017

dev-master

9999999-dev

This bundle offers overscroll functionality (as often used on news websites) for Contao pages.

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

24/11 2017

1.0.9

1.0.9.0

This bundle offers overscroll functionality (as often used on news websites) for Contao pages.

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

06/11 2017

1.0.8

1.0.8.0

This bundle offers overscroll functionality (as often used on news websites) for Contao pages.

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

06/11 2017

1.0.7

1.0.7.0

This bundle offers overscroll functionality (as often used on news websites) for Contao pages.

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

20/10 2017

1.0.6

1.0.6.0

This bundle offers overscroll functionality (as often used on news websites) for Contao pages.

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

20/10 2017

1.0.5

1.0.5.0

This bundle offers overscroll functionality (as often used on news websites) for Contao pages.

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

20/10 2017

1.0.4

1.0.4.0

This bundle offers overscroll functionality (as often used on news websites) for Contao pages.

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

17/10 2017

1.0.3

1.0.3.0

This bundle offers overscroll functionality (as often used on news websites) for Contao pages.

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

17/10 2017

1.0.2

1.0.2.0

This bundle offers overscroll functionality (as often used on news websites) for Contao pages.

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

17/10 2017

1.0.1

1.0.1.0

This bundle offers overscroll functionality (as often used on news websites) for Contao pages.

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

17/10 2017

1.0.0

1.0.0.0

This bundle offers overscroll functionality (as often used on news websites) for Contao pages.

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires