TripalCultivate / TripalCultivate-Theme

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

Large half tile #20

Closed reynoldtan closed 5 months ago

reynoldtan commented 6 months ago

This PR will setup Large Half Tile and content slider functionality by creating: image

  1. A hook preprocess block to capture field values in its raw and unformatted form.
  2. Create a slider script that will manage the slider controls and auto-slide tiles/slides.
  3. Setup markup and css for large half tile content.

To test:

Test areas:

Tips:

image

Creating content:

  1. Access my site/admin/content and click Blocks tab image
  2. Click +Add content block button. In the Add content block click Tripal Cultivate Theme Tile Block to load content entry form.
  3. Create a content by adding Description (Use the value entered to identify content), Tile title, Url/link and Link text, Image (Select a large image that will fill the tile dimension). No need to provide value for Hex colour code as it is not used in this tile.
  4. Click Save and access my site/admin/structure/block.
  5. Scroll down to Tripal Cultivate Tile Regions (at the bottom of the page). image
  6. Click on Place block button next to the Tripal Cultivate Theme Tiles - Large Half region. A window pop up showing all content created will appear. Select the content created in step 3 using the value entered in description field. Click Place block.
  7. Repeat until Tripal Cultivate Theme Tiles - Large Half region has 1 or > 1 contents added.
  8. Click Save block and refresh homepage.
laceysanderson commented 6 months ago

I also expected the colour overlay for the title on the image to match the background colour I entered in my block.

reynoldtan commented 6 months ago

Same with the slider bullets background.

image

reynoldtan commented 6 months ago

Same with the slider bullets background.

image This is a bad idea since it is not part of the tile configuration. I will leave this as is matching the theme colour.

reynoldtan commented 6 months ago

Fixed issues with the slider:

With the feedback, a non-compatible content will trigger an error in the frontend and a log error in Drupal Reports.

image

image