Skip to content

avblink/read_more_formatter

Repository files navigation

Read More textfield formatter (read_more_formatter)

Drupal 8 'text_with_summary' field formatter. Renders 'Summary' field with 'Read more' and 'Read less' buttons. Clicking 'Read more' button will replace summary text with that in the main field. Alternatively one can user <!--break--> delimiter in the main field in which case formatter will use text above the delimiter instead of that specified in summary field.

To install this module with composer

Add the following to your local compoaser.json file and run 'composer install' command.

{
    "require": {
        "avblink/read_more_formatter": "dev-master"
    },
    "extra": {
        "installer-paths": {
            "modules/contrib/{$name}/": [
                "type:drupal-module"
            ]
        }
    },
    "repositories": {
        "avblink": {
            "type": "vcs",
            "url": "https://github.com/avblink/read_more_formatter.git"
        }
    }
}

About

Drupal 8 text_with_summary field formatter. Adds 'Read more' button to expand/collapse full content.

Resources

License

Stars

Watchers

Forks

Packages

No packages published