Giter VIP home page Giter VIP logo

contao-clickpress-grid's Introduction

Version GitHub license

Grid CSS for Contao

Add columns to your page content.

Contao Clickpress Grid uses CSS Grid and so less HTML is needed.

Installation

composer require clickpress/contao-clickpress-grid

or use the Contao Manager.

Usage

  1. Enable the prebuilt CSS Grid in your Contao page layout or generate your own CSS.
  2. Add a new content element from type "Gridset start" - "Gridset end" will be autogenerated
  3. Edit your column configuration in the "Gridset start" content element
  4. Place some elements between "Gridset start" and "Gridset end".

If you need two content elements in a column, wrap them between the elements "Column start" and "Column end".

Customized CSS

If you want to customize your grid CSS follow these steps:

  1. Disable "Load Clickpress Grid CSS" in your page layout settings.
  2. Copy and edit the grid CSS (https://github.com/clickpress/contao-clickpress-grid/blob/main/src/Resources/public/clickpress-grid.scss)
  3. Add your new grid CSS to the page layout as "external CSS"

Inside

This is the result of a 40% 30% 30% setting on desktop. So, three columns will be displayed in a row. The fourth column will be placed in a new row, automatically.

<div class="grid_desktop_40_30_30 ...">
   <div class="ce_text">...</div>
   <div class="ce_text">...</div>
   <div class="ce_image">...</div>
   <div class="ce_text">...</div>
   <div class="ce_text">...</div>
</div>

Credits

Big thanks to rocksolid_columns for some parts of the module.

contao-clickpress-grid's People

Contributors

jaynoe avatar stefansl avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

contao-clickpress-grid's Issues

Required PHP-Version

Not every provider offers PHP 8.1 and not every other extension is prepared for this version. In most of the Contao installations I manage, I cannot currently update to version 1.5 of clickpress-grid.

Resource errors

I'm just testing Clickpress Grid (very neat!!! and already star-rated) version 1.5 running with Contao 4.13.21 and PHP 8.1.

No errors except Firefox console reports source map warnings:

Source-Map-Fehler: Error: NetworkError when attempting to fetch resource.
Ressourcen-Adresse: moz-extension://1f7e6221-8f86-4d44-815b-34534ce599d1/model/static/DOMPurify/purify.min.js
Source-Map-Adresse: purify.min.js.map

Source-Map-Fehler: Error: request failed with status 404
Ressourcen-Adresse: http://xxx.de/assets/css/clickpress-grid.css-f54166ac.css
Source-Map-Adresse: clickpress-grid.css.map

Probleme mit PHP 8.1

Hallo,
im Contao Manager erhalte ich folgende Fehlermeldung:
`In InitCommand.php line 909:

Package clickpress/contao-clickpress-grid has requirements incompatible with your PHP version, PHP extensions and Composer version:
- clickpress/contao-clickpress-grid 1.4.1 requires php ^7.1 which does not match your installed version 8.1.2.`

Contao 4.13
PHP 8.1

Gruß Michael

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.