Work in progress — this is a proof-of-concept recipe used to develop and test the drupal-quick scaffolding workflow. The API and config are not yet stable.
A drupal-recipe package that adds a Project content type and grid view to a standard Drupal install.
- Creates a Project content type with three fields: body, a Link field (
field_project_link), and a Thumbnail image (field_project_image) - Creates a Projects view (
/projects) with a three-column thumbnail grid, plus a block display - Ships theme assets that
dq:scaffoldinjects into the generated theme:templates/content/node--project.html.twig— project card markup with Schema.orgCreativeWorkJSON-LDtemplates/views/views-view--projects.html.twig— the three-column grid withItemListJSON-LDincludes/project.theme.inc— preprocessors for the above (wired via thedq_starterkitpreprocess dispatcher)
Requires the link and image modules. Both are part of Drupal core and are installed automatically when the recipe is applied.
This recipe is consumed automatically by drupal-quick. Add "project" to the recipes: list in config.dq.yml and run composer exec dq-install followed by drush dq:scaffold. See the drupal-quick workflow for the full steps.
To apply it manually:
composer require drupal-quick/recipe-project
drush recipe recipes/recipe-project