This project is not covered by Drupal’s security advisory policy.
This module makes it easy to use Material ScrollTop Button within a Drupal 7 site.
Similar modules
- Animated scroll to top (D8): a stable page scroll module for D8.
- Scroll button (D7 (beta)): not actively maintained for years.
- scroll to top (D7): not actively maintained for years.
- Back To Top (D8 (beta), D7): not actively maintained for years.
Requirements
- PHP 5.6+
- jQuery 1.7+
jQuery plugin "Material ScrollTop Button" depends on jQuery >= 1.7.
Drupal 7 is shipped with jQuery 1.4.4 and you need to replace it with jQuery >= 1.7. You can do that easily by using jQuery update module.
Necessary modules
If you use Drush to install Material ScrollTop Button module, these modules are installed automatically.
Installation
- Install the necessary modules listed above.
- Change jQuery version to 1.7+ in your Drupal site.
- Install Material ScrollTop Button module.
- Download jQuery plugin Material ScrollTop Button.
- Configure the module settings.
- (Optional) Adjust the style of the button.
You can use the following Drush command for the step 4.
$ drush libraries-download material_scrolltop
The step 5 and 6 can be done in the admin page (/admin/config/user-interface/material-scrolltop
).
You must be able to see the button after the step 5.
Usage
You can use this module in 2 ways.
- Use only library definition
- Use library definition and Add the button into page
1. Use only library definition
You use only the library definition of Material ScrollTop library. In this case, you can/must insert the button into pages by yourself.
2. Use library definition and Add the button into page
You use both the library definition and actual logic to insert the button into pages. You need to enable the button and configure the settings in the setting page (/admin/config/user-interface/material-scrolltop
).
Please check the README.md in the module directory for more information.
Screenshot
You can check the animated gif displayed in this page (click the second image).
Implemented hook functions (for developers)
Here is a list of all the hook functions this module implements.
- Drupal core
hook_init()
hook_menu()
hook_permission()
hook_requirements()
hook_uninstall()
- Libraries API
hook_libraries_info()
(If you're familiar with Drupal module development, a list of implemented hook functions will help to grasp what a module does and doesn't, I believe)
Found an issue?
If you've found an issue on this module, please don't hesitate to use d.o. issue queue.
Project information
- Module categories: Developer Tools
- 3 sites report using this module
- Created by hgoto on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
Development version: 7.x-1.x-dev updated 21 Apr 2018 at 06:33 UTC