markocupic/contao-rsce-backend-info-image

Add an info picture to your rsce configuration file

1.0.8 2023-02-24 08:26 UTC

This package is auto-updated.

Last update: 2024-04-24 11:00:39 UTC


README

logo.png

Contao Rocksolid Custom Element Backend Info Image for Contao CMS

This Plugin extends madeyourday/contao-rocksolid-custom-elements. The extension allows you to display a thumbnail beside the rsce element type.

Contao Rocksolid Custom Element Backend Info Image

Image configuration

The image configuration can be made in the config file of your rocksolid custom element. Contao Rocksolid Custom Element Backend Info Image

Installation

Execute the following command to install the extension:

composer require markocupic/contao-rsce-backend-info-image

Plugin configuration

The image html markup, the image size and the "add_after_regex_pattern" can be customized in your project config/config.yml.

# config/config.yml
markocupic_contao_rsce_backend_info_image:
 image_markup: '<div class="long widget rsce-backend-info-image"><div class="rsce-backend-info-image-inner"><img src="###IMAGE_SRC###" alt="###IMAGE_ALT###"></div></div>'
 add_after_regex_pattern: /<legend onclick="AjaxRequest\.toggleFieldset\(this,\'([a-z]+)_legend\',\'([a-zA-Z0-9-_]+)\'\)">([a-zA-Z0-9 ]+)<\/legend>/
 image_size: [400, '', 'proportional']

This extension has been sponsored by kda.studio, 63067 Offenbach am Main, Germany

kda.png