Suggestions for bloc types

Permalink Browser Info Environment
If you're looking for suggestions for block types, here are a few I feel would be very nice to add :
* Regex - essentially a Text field, but with a regex that would trigger an error when it fails and display a customized error message. This would replace a whole lot of different types, such as Numeric or Phone, with the advantage of flexibility
* Regex with a Textarea - this would be nice when accepting embed code for instance, to run some sanity checks
* Topic - allowing to select a topic
* Spinner - just a Numeric field with arrows to select an integer number

Type: Discussion
Status: In Progress
dangrth
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi there,

Thanks for the suggestions. The regex one seems interesting. That would be fun to play with. I'd have to see what happens if one enters an invalid regex though...

As for "spinner", that's just a "number" input right? Or what you mean with spinner? Not sure I've heard of that term yet, so interested what you mean with that!

Kind regards,
Ramon
dangrth replied on at Permalink Reply
dangrth
Yes, that would be a number input with an integer value and arrow keys. Such as the default HTML input in some browsers :
https://developer.mozilla.org/fr/docs/Web/HTML/Element/Input/number...

It's interesting to both help the user and make sure he is inputting an integer value.

But the regex would be the most useful I think. Validity could be checked by the CLI when generating the block.

concrete5 Environment Information

N/A

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.