herr rilke Posted June 15 Share Posted June 15 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 Link to comment Share on other sites More sharing options...
bernhard Posted June 15 Share Posted June 15 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 Link to comment Share on other sites More sharing options...
herr rilke Posted June 15 Author Share Posted June 15 wow, that is very beautiful! works like a charm - thank you! 1 Link to comment Share on other sites More sharing options...
bernhard Posted June 15 Share Posted June 15 @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! Link to comment Share on other sites More sharing options...
herr rilke Posted June 16 Author Share Posted June 16 @bernhard ah ok, i see what you mean input is perfect output is not working ? Link to comment Share on other sites More sharing options...
bernhard Posted June 16 Share Posted June 16 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 ? Link to comment Share on other sites More sharing options...
herr rilke Posted June 16 Author Share Posted June 16 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: Link to comment Share on other sites More sharing options...
bernhard Posted June 16 Share Posted June 16 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! Link to comment Share on other sites More sharing options...
herr rilke Posted June 20 Author Share Posted June 20 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 Link to comment Share on other sites More sharing options...
bernhard Posted June 20 Share Posted June 20 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/ Link to comment Share on other sites More sharing options...
herr rilke Posted June 21 Author Share Posted June 21 perfect! thank you! btw: where's the [mark as solved] button ?? Link to comment Share on other sites More sharing options...
zoeck Posted June 21 Share Posted June 21 7 hours ago, herr rilke said: btw: where's the [mark as solved] button ?? Just edit the thread title and add [solved]? Link to comment Share on other sites More sharing options...
herr rilke Posted June 21 Author Share Posted June 21 sound's weired - that came to my mind, too - but i'm not allowed to do so. <feeling completely foolish /> Link to comment Share on other sites More sharing options...
zoeck Posted June 21 Share Posted June 21 Go to the first post in this thread, click on the „…“ on the right side -> edit - and then edit the title ? Link to comment Share on other sites More sharing options...
herr rilke Posted June 21 Author Share Posted June 21 [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 ? Link to comment Share on other sites More sharing options...
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