⚡️ W3CSS Paragraphs Views
The W3CSS Views module in Drupal, a sub-module of W3CSS Paragraphs, offers an extensive range of customization options for creating visually appealing content blocks by referencing a view block from Drupal Views. This integration requires the installation of the viewsreference Drupal module. The module provides a user interface with two main tabs: Display and Content, each with a set of configurable fields.
Display Tab
The Display tab in the W3CSS Views module is rich with customization options, allowing users to tailor the appearance of their content blocks precisely. Here are the fields available under this tab:
- Background Colors: Users can choose from 30 different colors to set as the background color of their content block.
- Background Color Hover: This option offers 30 color variations for the hover state of the background.
- Text Colors: There are 30 different text color options available to choose from.
- Text Color Hover: Similar to the background color hover, this field provides 30 color options for the text hover state.
- Border Color: Users can select from 30 different colors for the border.
- Border Color Hover: This field also offers 30 color options for the hover state of the border.
- Background Color Opacity: After selecting a background color, users can adjust its opacity between 5% and 95%, in increments of 10%. This feature results in a total of 330 color variations, but note that the opacity adjustment only applies to the background color.
- Width: This field allows setting the width of the block, with options ranging from 30% to 100%.
- Borders: Users can choose from 11 different border styles.
- Round Borders: There are 6 styles available for creating rounded borders.
- Margin: This field provides 6 styles for setting the margin.
- Padding: Users can choose from 8 different padding styles.
- Box Shadow: This option adds a 2px or 4px bordered shadow to the content block.
- W3.CSS Classes: An additional field is available for adding any specific W3.CSS classes for further customization.
Content Tab
The Content tab focuses on the content aspect of the block:
- Title: This field is for entering the title of the content block.
- Viewsreference Field: This crucial field is used to reference the specific view block that the W3CSS Views paragraph bundle will display. It leverages the functionality of the viewsreference module to integrate seamlessly with Drupal Views.
Conclusion
The W3CSS Views module in Drupal's W3CSS Paragraphs offers an extensive suite of options for customizing the appearance and content of blocks. Its integration with Drupal Views through the viewsreference module allows for a powerful and flexible way to display dynamic content. The range of styling options, including colors, borders, margins, paddings, and more, ensures that developers and site builders can create unique and engaging layouts that adhere to their site's design requirements.