Download the PHP package microman/kirby-section-block without Composer

On this page you can find all versions of the php package microman/kirby-section-block. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package kirby-section-block

Kirby Section Block (Beta)

Overview

Section wrapper block that contains column blocks.

Due to the success of Column Blocks and Grid block, i've been created an improved version based on your suggestions.

Features

⭐️ Easy setup section with custom fields in blueprints/fields/section.yml

⭐️ Easy setup columns with custom fields in blueprints/fields/columns.yml

⭐️ Define a collection of available columns types: blueprints/columns/*.yml.

⭐️ Setup styling per each columns type. Even with placeholders for the fields. -> Get deeper into wysiwyg.

This Plugin is currently on beta: Use at your own risk.

Contributors wanted! Please help me to improve this thing by posting your feedbacks or doing pull requests.

Bugs

  • Lost focus on input of the content block

Missing Feature

  • Paste
  • Parsley integration
  • Individual fielsset per column type
  • Change type button on main options bar
  • Compatibility with tabs

Installation

Manually

Download and copy the plugin into your plugin folder: /site/plugins/

With Composer

composer require microman/kirby-section-block:^1.0-beta

How to use

Just follow the Kirby Blocks instructions.

Set up your blueprint:

Set up your output:

Example

Let's make an example (like in the screenshot):

Set up the section block

Let's say you want to give your editors the ability to set the maximum width of your section.

site/blueprints/fields/sections.yml (Keep in mind: fields folder not blocks!)

The section block has not possibilities to define the styling for the backend.

Set up the column block

Now, we set the background field. We can use the given value, later for our backend styling. And also we set a few fielsets for our content blocks.

site/blueprints/fields/columns.yml

This setup needs a color field. Check this out...

Set up column types

You're free how much types you want to offer. But set at least one or delete the blueprints/columns folder for the 3 defaults. Here we use full width for instance and set the styling for the backend. The background value comes from our color field we defined before.

site/blueprints/columns/xxx.yml

Customize the output

The best way to do this, is to copy snippets/blocks/section from the plugin folder to your site folder. You'il easely understanding, whats going on there.

Let me just say something about the $column->column_width() method (with 1/2 as example):

Inherit the section block

I general you set up like above and you're good to go. But sometimes you need the section block anywhere else with different settings. Let me show you how to do this.

Customize the section

Let say, in one place you need to add a new field for you section. Let's do it:

Customize the column types

Customize column block

In this example we like to add a new field to the column and overwrite the fieldsets.

Phew! 🥵 A lot of indents. And no, it's no possible to set different column fieldsets for a specific column type. But if you like to implement it, feel free and make a pull request.

Have fun with it!

License

MIT

Show me your appreciation and buy me a ☕️


All versions of kirby-section-block with dependencies

PHP Build Version
Package Version
Requires getkirby/composer-installer Version ^1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package microman/kirby-section-block contains the following files

Loading the files please wait ....