-
Enhancing HTML Blocks in UNA CMS with Context-Specific Settings
I understand your point, but I believe it would be highly beneficial for every HTML block to have its own settings directly within the block itself, rather than being limited to the module settings. This approach would allow users to configure different display options for the same block when used in various contexts or on different pages.
For instance, I might want to display a banner featuring three people on one page, while on another page, I could use the same HTML block to showcase a list of 24 or 36 people, or any number I choose. This level of flexibility would be advantageous for any HTML block.
Drupal has a somewhat similar feature. I recall working on a news website where it was crucial to display HTML blocks with varying numbers of items across different pages. Additionally, each block could have different display settings depending on the device whether for desktop, mobile, or tablet, search results or browsing.
Another highly useful feature would be the ability to set the number of characters of text to display. Sometimes, I might only want to show a few lines of text, while other times, I might prefer to hide the text entirely and display only images or another type of content. The way content is displayed is critical for any website, as each site has its own requirements, and each client has different needs. Having multiple display options would greatly enhance customization.
Therefore, the ability to customize the display of specific content in different contexts becomes an essential feature. While module settings can establish default configurations, I believe users would prefer to adjust the number of displayed items at the page level rather than being restricted to a global setting.
Since HTML blocks can be duplicated and used in multiple contexts, it makes sense for them to have individual properties based on the context in which they appear. If I can rename an HTML block when copying it to another page, why shouldn’t I be able to change the number of displayed elements? This added flexibility would be incredibly useful.
Moreover, if additional customization options were available, the possibilities for personalization would become virtually limitless. This would open the door to a wide range of design possibilities, allowing users to start with a default setup and tailor each instance of the block to suit different needs.