Download the PHP package dorsetdigital/silverstripe-element-imagetext without Composer

On this page you can find all versions of the php package dorsetdigital/silverstripe-element-imagetext. 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 silverstripe-element-imagetext

Silverstripe Element Image/Text

Adds an Elemental content block containing rich text and an accompanying image.

CI

Requirements

For Silverstripe CMS 4 projects, use the 1.x releases.

Installation

Install with Composer:

Then run a dev/build.

Usage

The module adds an Image & Text Elemental block with:

Images are rendered responsively as WebP derivatives, with intrinsic dimensions and native lazy loading.

The module intentionally provides no frontend CSS. The generated markup uses content-element__* classes so projects can apply their own layout and styling.

Image widths

The values offered by the image-width dropdown can be changed through Silverstripe configuration. The configured key is output as a CSS class and the value is the CMS label:

See the SCSS example for one possible implementation.

Upgrading from 1.x

Version 2 targets Silverstripe CMS 6 and PHP 8.3 or newer and contains deliberate breaking data-model changes.

Before upgrading, take a database backup.

The Image relation has changed from many_many to has_one, reflecting the fact that the element supports a single image. The old SiteTree-only ImageLink relation has also been replaced by Silverstripe LinkField.

After updating the code, run a dev/build and then run the supplied migration task before editing existing Image & Text elements:

The task copies the first image from the legacy many-many relation into the new single-image relation and converts legacy SiteTree image links into LinkField SiteTreeLink records. It is safe to run more than once: already-migrated values are skipped, and existing v2 values are not overwritten.

The migration is intentionally explicit rather than automatic. Review the migrated content before removing any legacy database tables or columns.


All versions of silverstripe-element-imagetext with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
silverstripe/cms Version ^6.0
silverstripe/linkfield Version ^5.0
dnadesign/silverstripe-elemental Version ^6.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 dorsetdigital/silverstripe-element-imagetext contains the following files

Loading the files please wait ...