Drupal Development Using Features
-
Upload
levelten-interactive -
Category
Technology
-
view
2.856 -
download
0
description
Transcript of Drupal Development Using Features
![Page 1: Drupal Development Using Features](https://reader036.fdocuments.net/reader036/viewer/2022082808/55636257d8b42a734b8b506c/html5/thumbnails/1.jpg)
Drupal Development Using Features
Randall KnutsonLevelTen Interactive
![Page 2: Drupal Development Using Features](https://reader036.fdocuments.net/reader036/viewer/2022082808/55636257d8b42a734b8b506c/html5/thumbnails/2.jpg)
The power of Drupal
Drupal stores both content and configuration in the database
Content Configuration
![Page 3: Drupal Development Using Features](https://reader036.fdocuments.net/reader036/viewer/2022082808/55636257d8b42a734b8b506c/html5/thumbnails/3.jpg)
The problem with Drupal
Drupal stores both content and config in the database
Development Staging Production
![Page 4: Drupal Development Using Features](https://reader036.fdocuments.net/reader036/viewer/2022082808/55636257d8b42a734b8b506c/html5/thumbnails/4.jpg)
Splitting content and configuration
Content Configuration Configuration Content
![Page 5: Drupal Development Using Features](https://reader036.fdocuments.net/reader036/viewer/2022082808/55636257d8b42a734b8b506c/html5/thumbnails/5.jpg)
It's not that easy
With config in files, you can't do browser based configuration
Content Configuration
![Page 6: Drupal Development Using Features](https://reader036.fdocuments.net/reader036/viewer/2022082808/55636257d8b42a734b8b506c/html5/thumbnails/6.jpg)
The solution
Features allows config in either the database, files or both
Content & Configuration Configuration
Features
![Page 7: Drupal Development Using Features](https://reader036.fdocuments.net/reader036/viewer/2022082808/55636257d8b42a734b8b506c/html5/thumbnails/7.jpg)
How features works
Changes in the browser are saved to the database
Features
![Page 8: Drupal Development Using Features](https://reader036.fdocuments.net/reader036/viewer/2022082808/55636257d8b42a734b8b506c/html5/thumbnails/8.jpg)
Features can replace what is in database
Features
(Update)
![Page 9: Drupal Development Using Features](https://reader036.fdocuments.net/reader036/viewer/2022082808/55636257d8b42a734b8b506c/html5/thumbnails/9.jpg)
Features can write this to a file
Features
(Revert)
![Page 10: Drupal Development Using Features](https://reader036.fdocuments.net/reader036/viewer/2022082808/55636257d8b42a734b8b506c/html5/thumbnails/10.jpg)
When reading, database takes precedence
Features
![Page 11: Drupal Development Using Features](https://reader036.fdocuments.net/reader036/viewer/2022082808/55636257d8b42a734b8b506c/html5/thumbnails/11.jpg)
Files are read when nothing in database
Features