Code Monkey home page Code Monkey logo

volto-columns-block's Introduction

volto-columns-block

Releases

Pipeline Lines of Code Coverage Bugs Duplicated Lines (%)

Pipeline Lines of Code Coverage Bugs Duplicated Lines (%)

Volto add-on

Features

This package gives you a block with columns. Each column is its own separate blocks container.

Initializing Columns Layout Columns Edit Example Columns Sidebar Single Column Sidebar Columns View Example

Getting started

Try volto-columns-block with Docker

  git clone https://github.com/eea/volto-columns-block.git
  cd volto-columns-block
  make
  make start

Go to http://localhost:3000

Add volto-columns-block to your Volto project

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

    docker compose up backend
  2. Start Volto frontend

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

    "addons": [
        "@eeacms/volto-columns-block"
    ],
    
    "dependencies": {
        "@eeacms/volto-columns-block": "*"
    }
  • If not, create one:

    npm install -g yo @plone/generator-volto
    yo @plone/volto my-volto-project --canary --addon @eeacms/volto-columns-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

The Initial Owner of the Original Code is European Environment Agency (EEA). All Rights Reserved.

See LICENSE.md for details.

Funding

European Environment Agency (EU)

volto-columns-block's People

Contributors

ana-oprea avatar andreiggr avatar avoinea avatar dana-cfc4 avatar danielamormocea avatar eea-jenkins avatar ichim-david avatar kreafox avatar laszlocseh avatar macagua avatar mbarde avatar mihaelacretu11 avatar mihai-macaneata avatar nileshgulia1 avatar razvanmiu avatar silviubogan avatar tiberiuichim avatar wesleybl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

volto-columns-block's Issues

Extensibility of `getStyle`

First of all: Great addon, thank you for publishing this!

I have a feature request (or maybe you have an idea on how to solve our problem otherwise): We need to extend the getStyle function in Styles/index.js (basically a single line: setting text color depending on selected background color).

But because of the way this function is imported by the other components we cannot make use of Voltos overriding mechanism (https://training.plone.org/5/voltoaddons/07-misc-addons.html). I think if the function would be be outsourced in a not-index.js file this issue could be solved.

On creation columns are evenly divided, regardless of selected proportions

I always get 50 / 50 proportions when I create a two-column block, regardless of the choice I make. I then can use the Layout option in the Columns block sidebar dialog to assign the proportions I want, but it would be good to have the initial choice work. (The analogoous problem holds for the 25 / 50 / 25 three column choice.)

I'm using volto-columns-block 5.1.0 and Volto 16.3.0.

Bug: Empty listing block in column breaks page

Steps to reproduce:

  1. Create columns block
  2. Add listing block inside a column (do not set any criteria)
  3. Save

Expected: Render page and listing block with "no items found" message

What actually happens: Contents of site root are rendered

Deleting last block from column crashes edit page

If you want to delete the column you should do it from the parent column properties.
If you delete each block from the inner column when there are no more blocks
then the edit page crashes.

The current workaround is to simply delete the column from the parent column properties.

As a fix for this issue Razvan said that when the last block is deleted a new empty block
will be inserted in order to keep the column in place and avoid crashing the edit page.

If the user decides to get rid of that column that it should be done from the column delete button
from the parent column properties

Listing block in column block is empty

listing block in column block with criterion path

I need some support here, it's quite complex why the path for the backend request is build with a wrong path.
Same listing block not included in a column block works fine.

Software

  • Slate branch master today
  • "@plone/volto": "^12.14.1",
  • "@eeacms/volto-blocks-form": "^2.0.0",
  • "@eeacms/volto-columns-block": "^2.0.0",
  • "@eeacms/volto-object-widget": "^2.0.0"

Cursor_and_Edit_Website_Übersichtsseite-2

IGIB-Inside_and_package_json_—_volto-slate-sandbox

IGIB-Inside

Unmet peer dependency

warning "workspace-aggregator-3fe56610-8427-4601-b1a6-ea30fd526ec7 > @eeacms/volto-columns-block > react-color > @icons/[email protected]" has unmet peer dependency "react@*".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.