Version 8 (modified by 8 years ago) ( diff ) | ,
---|
Some Drush commands
- drush -v help
- drush -v status
- drush -v core-status
- drush -v status-report
- drush -v elysia-cron
- drush -v core-cron
- drush -v pm-refresh
- drush -v rf
- drush -v pm-download
- drush -v dl
- drush -v pm-updatecode
- drush -v upc
- drush -v pm-update
- drush -v up
- drush -v pm-list
- drush -v pml
- drush --status=enabled pm-list
- drush pm-info <admin_menu|...>
- drush pm-enable
- drush pm-disable
- drush -v updatedb
- drush -v updb
- drush libraries-list
- drush -v l10n-update-status
- drush -v cache-clear
- drush -v bam-sources
- use --uri="http://example.org" then sending mail for simplenews https://www.drupal.org/node/1776536
- nice...
Drupal installation profile (minimal or standard)
- Built-in Installation Profiles (Drupal 7)
- https://github.com/drupal-composer/drupal-core/tree/8.0.x/profiles
- http://cgit.drupalcode.org/drupal/tree/profiles/minimal?h=7.x (does not allow to see files)
Installing Drupal 7 or 8 with Composer (on a development server outside MayFirst)
$ composer create-project "drupal-composer/drupal-project" <directory>
- Composer in relation to Drush Make
- https://github.com/drupal-composer/drupal-project/tree/8.x
- https://packagist.org/packages/drupal-composer/drupal-project
- https://packagist.org/packages/drupal/core
- Composer preserve paths
- https://packagist.org/packages/theodo/drupal8-bundle
Drupal 7 specificities of Composer install
Inactivate Drush download
- Inspired by "drupal-composer/drupal-project" for Drupal 8
- Install Drush policy
- https://github.com/drupal-composer/drupal-project/blob/8.x/drush/policy.drush.inc
- https://github.com/drush-ops/drush/blob/8.x/examples/policy.drush.inc
- Needs a recent version of Drush, 5.10, the one on Debian 8 Jessie is too old and the package is orphaned 2016-05-10 https://packages.qa.debian.org/d/drush.html
$ drush cache-clear drush 0 $ drush up This codebase is assembled with Composer instead of Drush. Use `composer update` and `composer [error] require` instead of `drush pm-updatecode` and `drush pm-download`. You may override this error by using the --pm-force option. 1 $
Using symlinks to avoid duplication of code and save server memory
- locally clone repositories using git (see below:
git
for Drupal)- composer version inference from git repositories is not reliable today with Composer version 1.0.0-beta2 2016-03-27
- https://getcomposer.org/doc/05-repositories.md#path
- https://discuss.flarum.org/d/1608-extension-development-using-composer-repositories-path It looks like
*
is accepted...{ #... "repositories": [ { "type": "path", "url": "workbench/*/" } ], #... }
- https://discuss.flarum.org/d/1608-extension-development-using-composer-repositories-path It looks like
- spot larger libraries (and the one used more often)
.../vendor$ du */* -sch | sort -h
.../vendor$ du */* -sc | sort -n
- https://getcomposer.org/doc/articles/troubleshooting.md
- http://fr.slideshare.net/fabrice.bernhard/integrating-drupal-8-into-symfony-2
Installing Drupal 7 or 8 with Drush (on a development server outside MayFirst)
$ drush help site-install $ drush dl drupal-7 $ cd drupal-7.43/ $ drush site-install minimal --db-url=sqlite://sites/default/files/.ht.sqlite $ drush site-install standard --locale=fr # worked after using the web interface to configure the database. $ drush site-install standard --locale=fr --db-url="pgsql:/host=/var/run/postgresql" # worked note the "/"!(?) $ drush rs $ drush site-install minimal --db-url="pgsql:host=/var/run/postgresql;dbname=infolettre-alici-webadmin;user=infolettre-alici-webadmin" # reade "ost" instead of "host"
- Not sure if an ; at the end of PostgreSQL db-url changes something...
- Try more than once!
- It may be easier with web interface.
- Considere drush site-install after a web install and database reinitialization.
- Installation with --local may take considerably more time (d7, d8)
git
for Drupal
$ git ls-remote --tags <repository> | sort --key=2 --version-sort | less $ git clone --branch <branch or tag> <repository> <directory>
- branch may evolve (devel) like 8.0.x
- tag are frozen, like stable releases as in 8.0.5
- directory may be
.../share/url/<URL>/<version>
,.../share/vendor/<vendor>/<package>/<version>
or.../share/latest/...
..../share/url$ git clone --branch 8.0.5 "https://git.drupal.org/project/drupal.git" git.drupal.org/project/drupal/8.0.5 .../share/url$ cd git.drupal.org/project/drupal/8.0.5 ; git branch -v * (aucune branche) d918ae1 Drupal 8.0.5
$ git ls-remote --tags https://github.com/drupal-composer/drupal-core | sort --key=2 --version-sort | less .../share/url$ git clone --branch 8.0.5 "https://github.com/drupal-composer/drupal-core" github.com/drupal-composer/drupal-core/8.0.5 .../share/url$ cd github.com/drupal-composer/drupal-core/8.0.5 ; git branch -v * (aucune branche) da4c151 Drupal 8.0.5
- https://www.drupal.org/project/drupal/git-instructions
- Creating a branch or tag in Git
- https://www.drupal.org/project/git_deploy
- 10.3 Git Internals - Git References
Drupal 8 requirements and particularities
- https://www.drupal.org/docs/7/system-requirements/overview
- https://www.drupal.org/docs/7/system-requirements/php
- https://api.drupal.org/api/drupal/core!INSTALL.txt/8.2.x
- admin/config/development/performance cache time needs to be as big as possible for the site time response to be good!
- Big Pipes inspired by FaceBook now in core (but experimental in Drupal 8.1)
- Drupal 8.0.5 needs Postgresql >= 9.1.2 instead of 8.4.20 #11587, #11522
- Drupal 8.0.5 works with Postgres, but not
drush site-install
CKEditor for Drupal 7
Lets'use wysiwyg module
- Supported Editors Matrix https://www.drupal.org/node/596966
- $ drush dl --select wysiwyg
- $ drush dl wysiwyg-2.x-dev
- $ drush en wysiwyg
- $ drush status-report
- .../sites/all/libraries$ ln -s .../bower_components/ckeditor/ .
Does not work! Brobably because of symbolic links... better use .bowerrc to set target directory as suggested above.
http://cdn.ckeditor.com/4.5.4/full-all
Drupal Modules
Installing and removing modules
Drupal 7 and 8 correspondancy
- Admin Toolbar
- Admin Toolbar
- [[span(title="Admin Toolbar improve...", Admin Toolbar)] ]
- [[span(title="Admin Toolbar improve...", Admin Toolbar)]]
- Tooltip example 1
Tooltip example 2h
"Tooltip 2g" Tooltip example 2g
"Tooltip 2h" Tooltip example 2h
Tooltip example 2e
Tooltip example 2f
Tooltip example 2c does not work
multiline` Tooltip example 2d
Tooltip example 4a
#!span title="Tooltip 2a" Tooltip example 2a
multiline tooltip
Tooltip example 3b }}}
D7 ordered | Drupal 8 | Drupal 7 | D8 ordered | |
---|---|---|---|---|
Core | ||||
Actions | ||||
Activity Tracker | ||||
Aggregator | ||||
Automated Cron | ||||
Ban | ||||
Block | ||||
Book | ||||
Administration | ||||
Navbar, Administration menu | Admin Toolbar | |||
Admin Toolbar Extra Tools | ||||
Media | ||||
Media | ||||
Entity Embed | Entity Embed | |||
Embed | ||||
Entity view modes | core | |||
Media Library | ||||
Video Embed Field | Video Embed Field | |||
File Entity (fieldable files) | File Entity (fieldable files) | |||
Media entity | ||||
Insert, One Click Upload | CKEditor Upload Image | |||
Styles | ||||
IMCE | IMCE | |||
Quick Edit | core | |||
Dialog | core | |||
Quick Edit Tab | core | |||
Picture | core | |||
- Tutorial: Drupal 8 WYSIWYG, Inline and Responsive Images
- Drupal 7/wysiwyg/CKEditor - no image upload capability
Hybridauth
http://cgit.drupalcode.org/hybridauth/tree/README.txt?id=refs/heads;id2=7.x-2.x
OpenID Connect
- Missing sign in block Drupal 8 version
Simplenews
Spark
Inside Drupal
Training
- https://www.youtube.com/results?search_query=drupal+8+under+the+hood
- https://drupalize.me/blog/201408/new-php-tutorials-symfony-experts-knp-labs
- https://www.youtube.com/results?search_query=drupal8
Entities
- Introduced in Drupal 7
- Something different : Symfony Entity
- An Introduction to Entities
- Entity API Tutorial
- Enties and Bundles in Drupal 7
- Understanding entity terminology
- Drupal 7 Entities: What are they, and what are they good for?
- https://www.drupal.org/project/bean
- https://api.backdropcms.org/api/backdrop/core!modules!entity!entity.api.php/1
- drupal 8 entity
- https://www.drupal.org/developing/api/entity
- https://www.drupal.org/node/2192175
- http://www.drupalcontrib.org/api/drupal/drupal!core!vendor!symfony!validator!Symfony!Component!Validator!Tests!Fixtures!Entity.php/8
Drupal 8
Performance
- https://www.drupal.org/docs/8/managing-site-performance-and-scalability
- https://www.drupal.org/project/site_audit
- https://www.drupal.org/project/lazyloader
- 11 Tips to Speed Up Drupal Performance by a CDN Provider
Cache
- Making Drupal 8 fly
- https://api.drupal.org/api/drupal/core%21core.api.php/group/cache/8.2.x?no_cache=1474197676
- Exploring the Cache API in Drupal 8
- Drupal 8's Dynamic Page Cache
- The Keys to Caching Drupal
Configuring
- keyword: drupal 8 $settingscachedefault
- http://www.drupalonwindows.com/en/blog/drupal-8-performance-moving-service-container-cache-away-database
- https://docs.acquia.com/article/drupal-8-cache-backend
- How to Turn Off Drupal 8 Caching
Managing cache
- https://www.drupal.org/project/purge
- https://www.drupal.org/project/expire (Drupal 7 only (2016-09))
Drupal 7 contrib, but in Drupal 8 core
APCu and APC
- members/GRIP-UQAM/PHP
- Several cache bins now use APCu caching by default Drupal 8
- Disable Drupal 8 caching during development
- Disabling the render cache
- Use fast, local cache back-end (APCu, if available) for low-write caches (bootstrap, discovery, and config)
- Day 1: Tweak Drupal 8 Performance: Use APCu - 24 days of performance goodies
- Drupal 8: Cache Backend
- https://www.drupal.org/project/apcu
- https://www.drupal.org/project/apc
- APC Caching to Dramatically Reduce MySQL traffic
Varnish
Feed
Atome seems abandoned by Drupal
Note:
See TracWiki
for help on using the wiki.