Skip to content

nevercodealone/sulu-cms-live-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

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://github.com/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://github.com/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!

About

PHPStorm live templates for the Sulu CMS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published