Arbeiten mit Drupal: Unterschied zwischen den Versionen
Erscheinungsbild
Keine Bearbeitungszusammenfassung |
|||
| Zeile 40: | Zeile 40: | ||
* [[Drupal Installation und Grundkonfiguration]] | * [[Drupal Installation und Grundkonfiguration]] | ||
==Theming== | ==Theming== | ||
Elemente Designen:</ | Elemente Designen: | ||
<copylink>https://www.drupal.org/project/styleguide | <copylink> composer require 'drupal/styleguide:^1.0'</copylink> [https://www.drupal.org/project/styleguide Drupal Module Styleguide] | ||
Allgemeine Hilfestellung bei[[Twig]] Programmierung | Allgemeine Hilfestellung bei[[Twig]] Programmierung | ||
Version vom 16. April 2020, 06:15 Uhr
Einloggen mit SSH
- DNS:<copylink>dev01</copylink>
- IP:<copylink>10.14.30.28</copylink> DNS: <copylink>dev01</copylink>
- User Name:<copylink>www-data</copylink>
- Passwort:Siehe Dokumentation
- WEB: http://dev01/
- PHP phpmyadmin: http://dev01/phpmyadmin
- SMB: \\dev01\www
Drush
Drush erledigt alle Datenbank einstellungen.
- Allgemein Drush
- Module installieren: <copylink>drush en -y MODULENAME</copylink> (zuerst nachher mit composer remove...
- Module deinstallieren: <copylink>drush pmu -y MODULENAME</copylink>
- Drupal Cachle Leeren: <copylink>drush cr</copylink>
- Drupal Cron Ausführen: <copylink>drush cron</copylink>
Weitere Befehle: Drush Commands
Composer
Composer Kümmert sich um das Dateisystem (Module, Themes, libraries, etc)
- Allgemein Composer
Git
- git Add: <copylink>git add .</copylink>
- git commit: <copylink>git commit --author="robin.austin <r.austin@computech.ch>" -m "diverses"</copylink>
- git push: <copylink>git push -u origin master</copylink>
Arbeiten mit Composer
Vor dem Entfernen muss das Modul deinstalliert werden!
- Module Installieren: <copylink>composer require 'drupal/ctools:^3.4'</copylink>
- Mudule Entfernen: <copylink>composer remove 'drupal/ctools'</copylink>
Drupal Installieren
Theming
Elemente Designen: <copylink> composer require 'drupal/styleguide:^1.0'</copylink> Drupal Module Styleguide
Allgemeine Hilfestellung beiTwig Programmierung
Diverses
Fish-Shell
- zum Projekt: <copylink>d8 ARGUMENT</copylink> zum Beispiel: <copylink>d8 zeberliedv</copylink>
FISH Hilfe
- Hilfe aufrufen: <copylink>fish_help</copylink>
allgemeine Alias ********************************
aliases -> Die Datei alieases.fish anpassen
e -> "session exit"
berechtigungen -> Chown Berechtigungen zu www-data setezen
berechtiguneen all -> berechtigungen all (Files und .git Verzeichnsi)
Drupal Spezifisch *******************************
d8 | d8 arg -> zu "D8" | "D8 zeberliedv" Ordner wechseln
www -> zu www Ordner wechseln
rsync Starten ********************************
sync arg -> "sync zeberliedv" Rsync für das Projekt "zeberliedv" ausführen
FISH / SSH **************************************
fish_update -> Fish einstellungen werden von Git wiederherstellen / updaten
ssh_update -> Serverliste von GIT updaten
ssh-key DOMAINNAME -> 1. "ssh_update" ausführen dann SSH Public Key "ssh-copy-id -i ~/.ssh/id_rsa.pub SERVER"auf einem neuen server installieren
Visual Studio Code (vs Code)
Erweiterungen
Beautify
Beautify css/sass/scss/less
Better Less
Color Highlight
CSS Peek
css-auto-prefix
Drupal 8 Twig Snippets
Drupal Syntax Highlighting
Duplicate selection or line
Easy LESS
HTML CSS Support
IntelliSense for CSS class names in HTML
Stylesheet Formatter
SVG Viewer
Twig Language
Twig Language 2
TWIG packzum Synchronisieren mit Github
Settings Sync