herr rilke Posted June 15, 2024 Posted June 15, 2024 hi there, block setting is a fantatstic feature! i'd like to use it to assign severeal additional classes and therefore use several checkboxes in a row. output should be something like: margins: [ ] top [ ] bottom [ ] left a.s.o i tried something like this ( but that doesn't work): $settings->add([ 'name' => 'margin-checkbox', 'label' => 'Marging', 'value' => $field->input('margin-checkbox', 'checkbox', [ '*foo' => 'foo value', 'bar' => 'bar value', 'baz' => 'baz value', ]), ]); is there a way to do that? 1
bernhard Posted June 15, 2024 Posted June 15, 2024 Hey @herr rilke thx for your question! There has always been the 'checkboxes' (plural) input type for this. In my IDE I can just click on the "->input(...)" and it will take me directly to the file RockFieldsField.php and there (inside the input method) you'll see all available options. I've added the option "checkboxes-inline" and changed the wording for radios to "radios" and "radios-inline" accordingly ? Please check v5.5.1
herr rilke Posted June 15, 2024 Author Posted June 15, 2024 wow, that is very beautiful! works like a charm - thank you! 1
bernhard Posted June 15, 2024 Posted June 15, 2024 @herr rilke sorry that was too fast ? I'm working on saving values and also an api to check values... I'll keep you updated!
herr rilke Posted June 16, 2024 Author Posted June 16, 2024 @bernhard ah ok, i see what you mean input is perfect output is not working ?
bernhard Posted June 16, 2024 Posted June 16, 2024 Please check v5.5.2 which I uploaded yesterday, just forgot to post here, sorry! https://www.baumrock.com/en/releases/rockpagebuilder/ Also check out the example with notes about usage here: https://www.baumrock.com/en/processwire/modules/rockpagebuilder/docs/settings/#rockfields And please mark the topic [solved] thx ?
herr rilke Posted June 16, 2024 Author Posted June 16, 2024 perfect, @bernhard ! thanks a lot, frontend output works fine, just tested it. but now i get while frontend editing: 6× PHP Warning: Undefined variable $k in ...\veraenderung\site\modules\RockFields\RockFields.module.php:342 plus two bullets @ radio fields in the block:
bernhard Posted June 16, 2024 Posted June 16, 2024 42 minutes ago, herr rilke said: 6× PHP Warning: Undefined variable $k in ...\veraenderung\site\modules\RockFields\RockFields.module.php:342 This is fixed in v5.5.3 and will be available to download in a few minutes, thx!
herr rilke Posted June 20, 2024 Author Posted June 20, 2024 hi @bernhard as far as i see 5.5.3 is still not evailable. so maybe you just forgot to upload ("after a few minutes") - just a friendly reminder ? 1
bernhard Posted June 20, 2024 Posted June 20, 2024 Hey @herr rilke sorry for that. I pushed to DEV and not to MAIN! It's now online @ https://www.baumrock.com/en/releases/rockpagebuilder/
herr rilke Posted June 21, 2024 Author Posted June 21, 2024 perfect! thank you! btw: where's the [mark as solved] button ??
zoeck Posted June 21, 2024 Posted June 21, 2024 7 hours ago, herr rilke said: btw: where's the [mark as solved] button ?? Just edit the thread title and add [solved]?
herr rilke Posted June 21, 2024 Author Posted June 21, 2024 sound's weired - that came to my mind, too - but i'm not allowed to do so. <feeling completely foolish />
zoeck Posted June 21, 2024 Posted June 21, 2024 Go to the first post in this thread, click on the „…“ on the right side -> edit - and then edit the title ?
herr rilke Posted June 21, 2024 Author Posted June 21, 2024 [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] [Solved] thank you ?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now