leadingsystems / lsce
Leading Systems LSCE as a Contao 4 component
Installs: 659
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 1
Open Issues: 1
Type:contao-component
Requires
- contao-components/installer: ^1.0.9
- leadingsystems/lscss: ^1.0.0
- leadingsystems/lsjs: ^3.0.0
- madeyourday/contao-rocksolid-custom-elements: ^2.3
- v1.1.2
- v1.1.1
- v1.1.0
- dev-develop / 1.0.x-dev
- dev-develop-v1.x / 1.0.x-dev
- dev-master / 1.0.x-dev
- v1.0.0
- v1.0.0-beta4
- v1.0.0-beta3
- v1.0.0-beta2
- v1.0.0-beta1
- dev-feature-html-wrapper
- dev-feature-switch-gallery
- dev-feature-contentbox-modal
- dev-feature-footer-light
- dev-feature-timeline
- dev-fullscreen-image-box-01
- dev-feature-picture-art-direction
- dev-feature-footer
- dev-feature-headline-extended
- dev-feature-image-text-tile
- dev-feature-contentbox-02
- dev-feature-infobar
- dev-feature-hero
- dev-feature-testbox-01
This package is auto-updated.
Last update: 2024-12-24 15:05:26 UTC
README
What is LSCE?
LSCE is a collection of content elements (custom elements) for Contao. LSCE relies on the custom elements extension by rocksolid to render the elements' backend interface and frontend output. The elements are styled using the LSCSS framework which essentially means SASS in the SCSS syntax. If elements require JavaScript, the scripts provided with the elements rely on the LSJS framework.
ATTENTION: Using JavaScript in LSCE is not yet supported because LSJS does not yet support loading external modules.
Getting started
After installing LSCE, it is located in assets/lsce.
Please note: The files in this directory must not be modified.
In order to be able to use a content element from the LSCE collection, you must copy both files contained in the element's copy folder to "/templates". This is necessary because the rocksolid custom elements extension expects both the config file and the template of each custom element to be located in that folder. The files to copy contain include statements which load the actual config and template files from "assets/lsce".
Since every LSCE content element comes with its own stylesheet, you also have to import the stylesheet of each content element that you want to use in your project's lscss-project.scss file.
After that, using LSCE content elements simply means using them in the Contao backend as content elements and/or frontend modules just like you would use any regular content element or frontend module.
Modifying LSCE content elements
If you want to modify a content element, you can simply open the element's config and/or template files in the "/templates" folder and replace the include statement with the content of the included file. The LSCSS stylesheet that you import in your lscss-project.scss can be copied from the LSCE content element's folder (from "assets/lsce") to your project's LSCSS folder and then you can include the copied filed. You can now change the code in those files as you wish and all changes are update-safe.