-
Posts
6,132 -
Joined
-
Last visited
-
Days Won
302
Everything posted by bernhard
-
Hey @gebeer would be nice to mark this topic [solved] thx π
-
Hey @nurkka I've added a setting for you some time ago and think I forgot to mention that π Please check out v5.9.1 and mark this [solved]
-
Congrats to all of you πͺ Great to see you had a good time π
-
I also like the "cowboy coding" term, but I want to add that VSCode remote can not only be used for cowboy coding but also for - I don't know how to say - regular tasks! I'm using it on a regular basis to do different things on my servers that I manage. It's great, for example, for editing files that are not part of the automated deployment - eg /site/config-local.php Browsing files, moving folders, searching for keywords in the codebase, temporarily adding something to the codebase, etc.; All of that is extremely comfortable to do with VSCode compared to doing it on the command line. So it's definitely a tool that is worth to have and worth to know!
-
RockForms - Simple, secure and versatile forms based on NetteForms
bernhard replied to bernhard's topic in Modules/Plugins
Hey @zoeck thx that helped a lot. I hacked together an example for you that shows how you can use AlpineJS for that: public function buildForm() { $form = $this; $form->setRockFormsRenderer('UIkit'); $form->setHtmlAttribute('x-data', '{ lines: 2, init() { // update lineData when lines input changes this.$watch("lines", this.lineData.bind(this)); // monitor inputs and update textarea document.addEventListener("input", this.updateTextarea.bind(this)); }, // return an array that we can use for x-for lineData() { return Array.from({length: this.lines}); }, // update textarea when inputs change updateTextarea(e) { // find all .linedata elements const els = document.querySelectorAll(".linedata"); // get their values const values = Array.from(els).map(el => el.value); // join them with newlines const text = values.join("\n"); // set the textarea value to that document.querySelector("textarea").value = text; }, }'); $form->addInteger('lines') ->setHtmlAttribute('x-model', 'lines'); $form->addTextArea('times') ->setHtmlAttribute('rows', '10'); $form->addMarkup('<template x-for="line in lineData"> <div><!-- must have one single root element --> <input type="text" class="linedata uk-input"> </div> </template>'); } The idea is to create a textarea (that would be hidden) that holds the data and to build the UI based on another input via AlpineJS x-for directive: -
Silly forum thing: Can't find 'mark as solution' button in the forum
bernhard replied to joe_g's topic in General Support
Nope, it doesn't. This has probably confused many of us π It's a bug. These mails can be ignored. Maybe @Pete can look into it one day? -
Interesting thread. I'll add RockMigration deployments to the mix. I'm working on a video about it π And I'll probably improve the process along the way...
-
RockFrontend site-rockfrontend tailwindcss without npm
bernhard replied to olivetree's topic in Themes and Profiles
Hey @olivetree my site profile uses NPM to install tailwind and tailwind is used for all the utility classes like "mt-5" or "py-2" etc.; Whenever you run "npm run build" this process is started and it creates a css file that you can then load on your webpage. In my profile this is usually done whenever a file changes (from /site/livereload.php). If you don't modify your markup on your production system this file will never ever change, so you can just upload that file and that's all you have to do. If you don't need to recompile the file you don't need npm on the remote server. -
RockForms - Simple, secure and versatile forms based on NetteForms
bernhard replied to bernhard's topic in Modules/Plugins
I still don't understand. Could you please describe it with an example from start to finish? -
RockForms - Simple, secure and versatile forms based on NetteForms
bernhard replied to bernhard's topic in Modules/Plugins
Hey @Sanyaissues thank you very much!! π Hi @zoeck thank you for your question - I have not had the need for that so far but looking at the docs of your link it looks like a great match. If you only need a simple repeating element it might also be an option to use AlpineJS! What is the exact use case? -
RockPageBuilder registering changes to fields when translated
bernhard replied to FireWire's topic in RockPageBuilder
Hey @FireWire thx for the message. I think that sounds like we should do another video call π PM... -
Hey @zoeck thx for your question! Sure π RockCommerce is built like ProcessWire. You have several modules that help you build what you need, but you need to put your pieces together yourself. That means more work upfront, but you can build exactly what you need. Just like building a website with ProcessWire - you don't need pagination? Don't add it to your site... You don't need payment? Just don't add that step to RockCommerce. But it sounds like the product and cart functionality plus the (multi-step) checkout via RockForms could save you a ton of time already. Nonetheless please be sure to check the minimum requirements in terms of all possible features like shipping, variations, stock keeping etc. and check if RockCommerce supports all that (yet). BTW: We'll launch my first real-world RockCommerce project today ππ₯ I'll then try to work on the docs to make it as easy to understand and use as possible! Official launch should then be end of November. If you need something earlier let me know. Hey @Sanyaissues that looks great! Didn't even think to display the cart side by side with the products but great to see that you are able to use the module in your own way!! π
-
Thx @zoeck seems I made a mistake when refactoring! Should be fixed in v3.23.2 π Thank you!
-
Hi @zoeck thx for the report. That's definitely not intended. Otherwise I'd bumped the version to v4.0 to indicate a breaking change. There should be no changes necessary when upgrading the module. Could you please look into this and let me know what you can find?
-
@herr rilke please provide step by step instructions what you did. Provide every file name you created, every file content you put into it, every url you put into your browser. Every important detail about the pw installation (eg is it in a subfolder or not)... @dotnetic just confirmed that it works for him on windows + in subfolder installation
-
Another module that was created through the development of RockCommerce π Ever needed a list of all countries of the world? Wanted to show a subset? Needed to translated them to other languages? Check out RockCountries, which can help you with these things: // using tracy debugger's bd() bd(rockcountries()->countries()->get('alpha2=aut')); Download & Docs: baumrock.com/RockCountries
-
Just download it from github and remove /site/modules/RockFrontend and then add the new files there https://github.com/baumrock/RockFrontend/archive/refs/heads/main.zip or https://github.com/baumrock/RockFrontend/releases I've found an issue on my project but let me know if the new version works for you nonetheless. Please use v3.23.1 !
-
Hey @herr rilke there was an issue with the ajax feature both on windows installations and on subfolder installations. I think they should be fixed now! Please check out v3.23 PS: Thx for your help with the windows path issue @dotnetic, the final fix was a little bit more complicated though π https://github.com/baumrock/RockFrontend/commit/0cf84be630050d212b334e52477d97039823de4f https://github.com/baumrock/RockFrontend/commit/c9fbd2430e166d304cae9af943510cb8a391bcdf
-
No, I haven't. I tried a Mac once and the app window buttons location on the left (instead of the right) just confused me π. Thanks for the suggestion thoug. I can second what @szabesz said. I was never a fan of mac. I even installed windows on a macbook air when I once bought one and could not work with it for the same reasons that @kongondo mentioned. But then I had to use one in an agency I was working and I switched the hard way. I did intentionally not change and keyboard mappings and I did intentionally not change mouse wheel direction. It took about 2 weeks to get used to it, but it worked. Now it's the new normal for me and I have to say with MacOS it's a far better experience than what I had with windows. Many things that seem to be "better" on windows are just a matter of habits. But MacOS is so much more polished and less chaotic. And things run so much more reliably. I can't remember when I rebooted my mac the last time. Just leave it after work and in less than a second it's back on the next morning. No more fear of running out of battery life on a 2h meeting. And no sound of annoying fans (on MacBook Air). Nothing. So much better! And last but not least: It's UNIX. rsync, htop, wget... whatever... all there! And no problems because of "wrong" file path delimiters. BTW: If any of the windows users could help me with debugging this RockFrontend issue I'd be very happy: https://processwire.com/talk/topic/27417-rockfrontend-π₯π-the-powerful-toolbox-for-processwire-frontend-development/?do=findComment&comment=245336
-
Hey @FireWire the warning is thrown in RockFrontend. I'm not sure what line 229 in your StylesArray.php is as mine might be different from yours. Could you please try to fix it in RockFrontend and let me know what to do? I have tried to reproduce it in one of my projects but didn't the any warnings. Or do you think it should be fixed in RockPageBuilder?