TripalCultivate / TripalCultivate-Theme

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

Create companion module #14

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.

This PR does the following:

Testing

  1. Clone this repo and checkout this branch
  2. Build a new image from this code: docker build --tag=trpcultivate:11 --build-arg drupalversion=10.2.x-dev --build-arg phpversion=8.3 ./
  3. Run a new container (no need to mount when confirming functionality; for instructions on mounting see the README): docker run --publish=80:80 -tid --name=theme11 trpcultivate:11 && docker exec theme11 service postgresql restart
  4. Load the frontpage by going to localhost and confirm that it shows the current theme enabled.
  5. Go to the appearance page and ensure that the theme is enabled and states the companion module as a dependency (see screenshot)
  6. Go to the module page and ensure the companion module is present and enabled (see screenshot)

image

image

image

reynoldtan commented 6 months ago

Brilliant! pieces into the right place at the right time

Companion enabled Screen Shot 2024-03-27 at 11 41 54 AM

Theme is the default Screen Shot 2024-03-27 at 11 42 46 AM