TripalCultivate / TripalCultivate-Theme

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

Setup block types #18

Closed reynoldtan closed 6 months ago

reynoldtan commented 6 months ago

This PR will setup tile block content type and create 4 fields required. The process is setup in the hook install of the companion module of the theme.

Screen Shot 2024-04-02 at 10 42 30 AM

NOTE: each tile content added is not rendered as mocked up (not themed) but note the following content items:

To test:

  1. Clone repo and switch to branch setup-block-types (make sure to point repo to this branch to initiate install hook).
  2. Build clone : 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): docker run --publish=80:80 -tid --name=theme11 trpcultivate:11 && docker exec theme11 service postgresql restart
  4. Setting up content requires administrator rights, login at this point.
  5. Access my site/admin/structure/block and double check regions were created by the theme. image
  6. Access my site/admin/structure/block-content and double check tile block content type was created by companion module. Screen Shot 2024-04-02 at 10 51 16 AM
  7. Add tile content using Tripal Cultivate Theme Tile Block. in my site/admin/content/block

Screen Shot 2024-04-02 at 10 54 04 AM

Content has a description field, use this field to identify content when placing it into a tile.

  1. Place content into the regions in my site/admin/structure/block by clicking Place Block button.
  2. Click save and refresh homepage. Repeat steps 7 and 8 as needed.