Skip to content

Latest commit

 

History

History
45 lines (23 loc) · 1.41 KB

README.md

File metadata and controls

45 lines (23 loc) · 1.41 KB

PHPStorm live templates for the Sulu CMS

This repository has all PHPStorm live templates from Roland Golla. You know this from the Sulu tutorial series from YouTube.

Content management PHP tutorial Symfony Sulu CMS, GitLab pipelines with PHP docker DDEV deployments

How to use

  1. Go to Preferences | Tools | Settings Repository

  2. Add Read-only Source https:/nevercodealone/sulu-cms-live-templates

  3. Restart PhpStorm.

  4. To see all templates, go to Preferences | Live Templates and expand the Template Group.

Settings-Window

Sulu config highlights

Trigger code completion with ctrl+j

config-format-img // add new image format to image-formats.xml

config-block-xml-file // complete new block config to include

config-include // include blocks/filename.xml in blocks loader

config-link-text-to-page // CTA button with text

Twig highlights

twig-defined-and-not-empty // render var when set

twig-content-organisation // set orgaisation

twig/not/empty/for/loop // for loop when not empty

Thx Shyim for inspiration

https:/shyim/shopware6-live-templates/tree/main/templates

Contribute

Give this likes and feedback. When you want to add something give a pull request. In the future we will publish a NCA live template plugin? Feel free to create a Pull Request!