TripalCultivate / TripalCultivate-Theme

Provides a base theme for our collection of Tripal Cultivate sites.
0 stars 0 forks source link

Create a companion module for our theme #12

Closed laceysanderson closed 6 months ago

laceysanderson commented 6 months ago

We need to create a companion module for our theme because Drupal has decided that themes can only contain presentation layer and not logic such as block types. Since we need block types for our frontpage implementation, we need a module for that code to live in.

We had discussed creating a whole new repo or even just adding the block type to the base TripalCultivate module/repo but have decided on the following plan instead:

  1. Move the current theme into a subdirectory in the current repo leaving the composer.json where it is.
  2. Create a new subdirectory containing the companion module
  3. Setup dependencies so that the module is installed before the theme
  4. Update associated dockerfiles both in this repo and the base theme.