Skip to content

Volto block to create pages with arbitrary title + image + description content, not based on existing content of the site

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

codesyntax/volto-featured-block

Repository files navigation

volto-featured-block

Volto add-on to create pages with arbitrary content based on a simple schema (title + image + text), that can be extended using schemaEnhancers and that support variations. The content of the block is not based in some other content of the site (for instance in core Volto's Teaser block content comes initially from a given content of the site).

This block is intended to build front pages or landing pages where usually a lot of simple content need to be added and that content is not coming from existing content.

It provides extension mechanisms using schemaExtenders and variations to add new templates or fields to it.

Installation

Add this addon to your project's dependencies:

   dependencies: {
      '@codesyntax/volto-featured-block": "*"
   }

Features

Demo GIF

Getting started

Try volto-featured-block with Docker

  1. Get the latest Docker images

    docker pull plone
    docker pull plone/volto
    
  2. Start Plone backend

    docker run -d --name plone -p 8080:8080 -e SITE=Plone -e PROFILES="profile-plone.restapi:blocks" plone
    
  3. Start Volto frontend

    docker run -it --rm -p 3000:3000 --link plone -e ADDONS="@codesyntax/volto-featured-block" plone/volto
    
  4. Go to http://localhost:3000

Add volto-featured-block to your Volto project

  1. Make sure you have a Plone backend up-and-running at http://localhost:8080/Plone

  2. Start Volto frontend

  • If you already have a volto project, just update package.json:

    "addons": [
        "@codesyntax/volto-featured-block"
    ],
    
    "dependencies": {
        "@codesyntax/volto-featured-block": "^1.0.0"
    }
  • If not, create one:

    npm install -g yo @plone/generator-volto
    yo @plone/volto my-volto-project --addon @codesyntax/volto-featured-block
    cd my-volto-project
    
  1. Install new add-ons and restart Volto:

    yarn
    yarn start
    
  2. Go to http://localhost:3000

  3. Happy editing!

Release

See RELEASE.md.

How to contribute

See DEVELOP.md.

Copyright and license

See LICENSE.md for details.

About

Volto block to create pages with arbitrary title + image + description content, not based on existing content of the site

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published