Download the PHP package xddesigners/page-content-block without Composer

On this page you can find all versions of the php package xddesigners/page-content-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 page-content-block

Page Content Block

Adds a page content block to the elemental editor.

What it is

A Page content block is used to display the content from the Page model in the elemental area. This is useful for instance on pages like BlogPost's, UserForms or any page type that is added by a module.

For who it exists

For example, users editing blog posts want a lighter editing experience, but keep the flexibility of a block editor. This module sits in between by re-inserting the content field and moving the Elemental area to a Layout tab.

What it does

It simply renders the current page controller in an Element. So you can access the page $Content, $Title or any other method on that element. The PageContentBlock is created on page creation so the element always exists. The user can simply start typing in the content field and keeps the flexibility of adding any blocks around the PageContentBlock.

Templating

The block searches for a block template closest matching the current page type. It looks fot it's own class ancestry and adds "ContentBlock" to the end of the class name. For example, for a BlogPost it will search for a BlogPostContentBlock.ss, if not found it will go down the ancestry until it will fallback to the PageContentBlock.ss. He will search in one folder namespaced to this module. The template folder path is templates/XD/PageContentBlock/Models/YourClassContentBlock.ss.

Configuration

The creation of the PageContentBlock is configurable, this module looks on the current page type for a config setting default_blocks. You could also use that setting to create a default banner block on BlogPosts.

If you don't want the re-inserting of the content field you can set the keep_content_field setting to false.

If you want to disable the re-inserting of the content field on a specific class, for example the home page.


All versions of page-content-block with dependencies

PHP Build Version
Package Version
Requires silverstripe/framework Version >=4.0
silverstripe/cms Version >=4.0
dnadesign/silverstripe-elemental Version >=4.0
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 xddesigners/page-content-block contains the following files

Loading the files please wait ....