188 | | == Some Drush commands == |
189 | | * drush -v help |
190 | | * drush -v status |
191 | | * drush -v core-status |
192 | | * drush -v status-report |
193 | | * drush -v elysia-cron |
194 | | * drush -v core-cron |
195 | | * drush -v pm-refresh |
196 | | * drush -v rf |
197 | | * drush -v pm-download |
198 | | * drush -v dl |
199 | | * drush -v pm-updatecode |
200 | | * drush -v upc |
201 | | * drush -v pm-update |
202 | | * drush -v up |
203 | | * drush -v pm-list |
204 | | * drush -v pml |
205 | | * drush --status=enabled pm-list |
206 | | * drush pm-info <admin_menu|...> |
207 | | * drush pm-enable |
208 | | * drush pm-disable |
209 | | * drush -v updatedb |
210 | | * drush -v updb |
211 | | * drush libraries-list |
212 | | * drush -v l10n-update-status |
213 | | * drush -v cache-clear |
214 | | * drush -v bam-sources |
215 | | * use --uri="http://example.org" then sending mail for simplenews https://www.drupal.org/node/1776536 |
216 | | * nice... |
217 | | == Drupal installation profile (minimal or standard) == |
218 | | * [https://www.drupal.org/node/1127786 Built-in Installation Profiles (Drupal 7)] |
219 | | * https://github.com/drupal-composer/drupal-core/tree/8.0.x/profiles |
220 | | * http://cgit.drupalcode.org/drupal/tree/profiles/minimal?h=7.x (does not allow to see files) |
221 | | == Installing Drupal 7 or 8 with [https://en.wikipedia.org/wiki/Composer_(software) Composer] (on a development server outside MayFirst) == |
222 | | {{{#!sh |
223 | | $ composer create-project "drupal-composer/drupal-project" <directory> |
224 | | }}} |
225 | | * [https://www.drupal.org/node/2471553 Composer in relation to Drush Make] |
226 | | * https://github.com/drupal-composer/drupal-project/tree/8.x |
227 | | * https://packagist.org/packages/drupal-composer/drupal-project |
228 | | * https://packagist.org/packages/drupal/core |
229 | | * [https://github.com/derhasi/composer-preserve-paths Composer preserve paths] |
230 | | * https://packagist.org/packages/theodo/drupal8-bundle |
231 | | === Drupal 7 specificities of Composer install |
232 | | ==== Inactivate Drush download |
233 | | * Inspired by "drupal-composer/drupal-project" for Drupal 8 |
234 | | * Install Drush policy |
235 | | * https://github.com/drupal-composer/drupal-project/blob/8.x/drush/policy.drush.inc |
236 | | * https://github.com/drush-ops/drush/blob/8.x/examples/policy.drush.inc |
237 | | * 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 |
238 | | {{{#!sh |
239 | | $ drush cache-clear drush |
240 | | 0 $ drush up |
241 | | This codebase is assembled with Composer instead of Drush. Use `composer update` and `composer [error] |
242 | | require` instead of `drush pm-updatecode` and `drush pm-download`. You may override this error by |
243 | | using the --pm-force option. |
244 | | 1 $ |
245 | | }}} |
246 | | === Using symlinks to avoid duplication of code and save server memory === |
247 | | * locally clone repositories using git (see below: {{{git}}} for Drupal) |
248 | | * composer version inference from git repositories is not reliable today with Composer version 1.0.0-beta2 2016-03-27 |
249 | | * https://getcomposer.org/doc/05-repositories.md#path |
250 | | * https://discuss.flarum.org/d/1608-extension-development-using-composer-repositories-path It looks like {{{*}}} is accepted... |
251 | | {{{#!json |
252 | | { |
253 | | #... |
254 | | "repositories": [ |
255 | | { |
256 | | "type": "path", |
257 | | "url": "workbench/*/" |
258 | | } |
259 | | ], |
260 | | #... |
261 | | } |
262 | | }}} |
263 | | * spot larger libraries (and the one used more often) |
264 | | {{{#!sh |
265 | | .../vendor$ du */* -sch | sort -h |
266 | | }}} |
267 | | {{{#!sh |
268 | | .../vendor$ du */* -sc | sort -n |
269 | | }}} |
270 | | * https://getcomposer.org/doc/articles/troubleshooting.md |
271 | | * http://fr.slideshare.net/fabrice.bernhard/integrating-drupal-8-into-symfony-2 |
272 | | * |
273 | | == Installing Drupal 7 or 8 with [https://github.com/drush-ops/drush Drush] (on a development server outside MayFirst) == |
274 | | {{{#!sh |
275 | | $ drush help site-install |
276 | | $ drush dl drupal-7 |
277 | | $ cd drupal-7.43/ |
278 | | $ drush site-install minimal --db-url=sqlite://sites/default/files/.ht.sqlite |
279 | | $ drush site-install standard --locale=fr # worked after using the web interface to configure the database. |
280 | | $ drush site-install standard --locale=fr --db-url="pgsql:/host=/var/run/postgresql" # worked note the "/"!(?) |
281 | | $ drush rs |
282 | | $ drush site-install minimal --db-url="pgsql:host=/var/run/postgresql;dbname=infolettre-alici-webadmin;user=infolettre-alici-webadmin" # reade "ost" instead of "host" |
283 | | }}} |
284 | | * Not sure if an ; at the end of PostgreSQL db-url changes something... |
285 | | * Try more than once! |
286 | | * It may be easier with web interface. |
287 | | * Considere drush site-install after a web install and database reinitialization. |
288 | | * Installation with --local may take considerably more time (d7, d8) |
289 | | == {{{git}}} for Drupal == |
290 | | {{{#!sh |
291 | | $ git ls-remote --tags <repository> | sort --key=2 --version-sort | less |
292 | | $ git clone --branch <branch or tag> <repository> <directory> |
293 | | }}} |
294 | | * branch may evolve (devel) like 8.0.x |
295 | | * tag are frozen, like stable releases as in 8.0.5 |
296 | | * directory may be {{{.../share/url/<URL>/<version>}}} , {{{.../share/vendor/<vendor>/<package>/<version>}}} or {{{.../share/latest/...}}} . |
297 | | {{{#!sh |
298 | | .../share/url$ git clone --branch 8.0.5 "https://git.drupal.org/project/drupal.git" git.drupal.org/project/drupal/8.0.5 |
299 | | .../share/url$ cd git.drupal.org/project/drupal/8.0.5 ; git branch -v |
300 | | * (aucune branche) d918ae1 Drupal 8.0.5 |
301 | | }}} |
302 | | {{{#!sh |
303 | | $ git ls-remote --tags https://github.com/drupal-composer/drupal-core | sort --key=2 --version-sort | less |
304 | | .../share/url$ git clone --branch 8.0.5 "https://github.com/drupal-composer/drupal-core" github.com/drupal-composer/drupal-core/8.0.5 |
305 | | .../share/url$ cd github.com/drupal-composer/drupal-core/8.0.5 ; git branch -v |
306 | | * (aucune branche) da4c151 Drupal 8.0.5 |
307 | | }}} |
308 | | * https://www.drupal.org/project/drupal/git-instructions |
309 | | * [https://www.drupal.org/node/1066342 Creating a branch or tag in Git] |
310 | | * https://www.drupal.org/project/git_deploy |
311 | | * [https://www.drupal.org/node/1314752 Versioned dependencies and Git] |
312 | | * [https://git-scm.com/book/tr/v2/Git-Internals-Git-References 10.3 Git Internals - Git References] |
313 | | == Drupal 8 requirements and particularities == |
314 | | * Drupal 8.0.5 needs Postgresql >= 9.1.2 instead of 8.4.20 #11587, #11522 |
315 | | * Drupal 8.0.5 works with Postgres, but not {{{drush site-install}}} |
316 | | * keywords: drupal 8 postgresql |
317 | | * [https://www.drupal.org/node/2157455 Make Drupal 8 work with PostgreSQL or remove support from core before release] |
318 | | * [https://www.drupal.org/node/1060476 Multiple issues when PostgreSQL is used with non-public schema] |
319 | | == CKEditor for Drupal 7 == |
320 | | Lets'use wysiwyg module |
321 | | * Supported Editors Matrix https://www.drupal.org/node/596966 |
322 | | * $ drush dl --select wysiwyg |
323 | | * $ drush dl wysiwyg-2.x-dev |
324 | | * $ drush en wysiwyg |
325 | | * $ drush status-report |
326 | | * .../sites/all/libraries$ ln -s .../bower_components/ckeditor/ . |
327 | | Does not work! Brobably because of symbolic links... better use .bowerrc to set target directory as suggested above. |
328 | | |
329 | | http://cdn.ckeditor.com/4.5.4/full-all |
330 | | |
331 | | |
| 179 | * [wiki:members/GRIP-UQAM/Drupal Drupal] |
397 | | == Drupal Modules == |
398 | | * [[span(title="", )]] |
399 | | * [[span(title="Admin Toolbar improve...", [https://www.drupal.org/project/admin_toolbar Admin Toolbar])]] |
400 | | * [[span(title="""Admin Toolbar improve...""", [https://www.drupal.org/project/admin_toolbar Admin Toolbar])]] |
401 | | * [https://www.drupal.org/project/admin_toolbar [[span(title="Admin Toolbar improve...", Admin Toolbar)]] ] |
402 | | * [https://www.drupal.org/project/admin_toolbar [[span(title="Admin Toolbar improve...", Admin Toolbar)]]] |
403 | | * [[span(title=Tooltip 1, Tooltip example 1)]] |
404 | | |
405 | | {{{#!span title="Tooltip 2b" |
406 | | Tooltip example 2b |
407 | | }}} |
408 | | |
409 | | {{{#!span title="""Tooltip 2h""" |
410 | | Tooltip example 2h |
411 | | }}} |
412 | | |
413 | | {{{#!span title= |
414 | | "Tooltip 2g" |
415 | | Tooltip example 2g |
416 | | }}} |
417 | | |
418 | | {{{#!span title= |
419 | | "Tooltip 2h" |
420 | | Tooltip example 2h |
421 | | }}} |
422 | | |
423 | | {{{#!span title="Tooltip\\2e" |
424 | | Tooltip example 2e |
425 | | }}} |
426 | | |
427 | | {{{#!span title="Tooltip[[br]]2f" |
428 | | Tooltip example 2f |
429 | | }}} |
430 | | |
431 | | {{{#!span title=`Tooltip 2c` |
432 | | Tooltip example 2c does not work |
433 | | }}} |
434 | | |
435 | | {{{#!span title=`Tooltip 2d |
436 | | multiline` |
437 | | Tooltip example 2d |
438 | | }}} |
439 | | |
440 | | {{{#!html |
441 | | <span title="Tooltip 4a"> |
442 | | }}} |
443 | | Tooltip example 4a |
444 | | {{{#!html |
445 | | </span> |
446 | | }}} |
447 | | |
448 | | {{{#!span title="Tooltip 2a" Tooltip example 2a}}} |
449 | | |
450 | | {{{#!span title="Tooltip 3a |
451 | | multiline tooltip" |
452 | | Tooltip example 3a |
453 | | }}} |
454 | | |
455 | | {{{#!span title={{{Tooltip 3b |
456 | | multiline tooltip |
457 | | }}} |
458 | | Tooltip example 3b |
459 | | }}} |
460 | | |
461 | | ||= **D7 ordered** =|| Drupal 8 || || Drupal 7 ||= **D8 ordered** =|| |
462 | | || || || ||||= **Core** =|| |
463 | | || [[span(title="", )]] || [[span(title="", )]] || || [[span(title="", )]] || [[span(title="", )]] || |
464 | | || || || || || Actions || |
465 | | || || || || || Activity Tracker || |
466 | | || || || || || Aggregator || |
467 | | || || || || || Automated Cron || |
468 | | || || || || || Ban || |
469 | | || || || || || Block || |
470 | | || || || || || Book || |
471 | | || || || || || || |
472 | | || || || ||||= **Administration** =|| |
473 | | || || || || [https://www.drupal.org/project/admin_menu Administration menu] || [https://www.drupal.org/project/admin_toolbar Admin Toolbar] || |
474 | | || || || || || [https://www.drupal.org/project/admin_toolbar Admin Toolbar Extra Tools] || |
475 | | || || || || || || |
476 | | || || || || || || |
477 | | || || || || || || |
478 | | === [https://www.drupal.org/project/hybridauth Hybridauth] === |
479 | | http://cgit.drupalcode.org/hybridauth/tree/README.txt?id=refs/heads;id2=7.x-2.x |
480 | | === [https://www.drupal.org/project/simplenews simplenews] === |
481 | | * https://backdropcms.org/project/simplenews |
482 | | == Inside Drupal == |
483 | | === Training === |
484 | | * https://www.youtube.com/results?search_query=drupal+8+under+the+hood |
485 | | * http://knpuniversity.com/screencast/drupal8-under-the-hood |
486 | | * https://drupalize.me/blog/201408/new-php-tutorials-symfony-experts-knp-labs |
487 | | * https://www.youtube.com/results?search_query=drupal8 |
488 | | === Entities === |
489 | | * Introduced in Drupal 7 |
490 | | * Something different : Symfony Entity |
491 | | * [https://www.drupal.org/node/1261744 An Introduction to Entities] |
492 | | * [https://www.drupal.org/node/878784 Entity API Tutorial] |
493 | | * [http://joshaust.in/wp-content/uploads/2012/06/Entities-and-Bundles-in-Drupal-7.pdf Enties and Bundles in Drupal 7] |
494 | | * [https://www.drupal.org/node/1649688 Understanding entity terminology] |
495 | | * [https://evolvingweb.ca/blog/drupal-7-entities-what-are-they-and-what-are-they-good Drupal 7 Entities: What are they, and what are they good for?] |
496 | | * https://www.drupal.org/project/bean |
497 | | * https://api.backdropcms.org/api/backdrop/core!modules!entity!entity.api.php/1 |
498 | | * drupal 8 entity |
499 | | * https://www.drupal.org/developing/api/entity |
500 | | * https://www.drupal.org/node/2192175 |
501 | | * http://www.drupalcontrib.org/api/drupal/drupal!core!vendor!symfony!validator!Symfony!Component!Validator!Tests!Fixtures!Entity.php/8 |
502 | | === Drupal 8 === |
503 | | * http://www.garfieldtech.com/presentations/sflportland-drupal8-symfony2 |