Jump to content

bernhard

Members
  • Posts

    6,671
  • Joined

  • Last visited

  • Days Won

    366

Everything posted by bernhard

  1. Anybody using this config setting $config->livereloadBuild = true; please update to the latest version v3.18.2 otherwise the "npm run build" will execute every second if you have multiple tabs open which will produce useless cpu cycles and make your computer feel like it's training for a marathon ??
  2. Great! v2.1.0 is the old one that is not maintained any more (last update was in Jan 2023):
  3. @Stefanowitsch is using FTP to deploy his websites and ran into problems with DDEV (see here for details). I didn't have these problems as I'm using automated deployments via RockMigrations + Github Actions, but I got this warning an every ddev start: Both issues are related as Randy explains here: https://github.com/ddev/ddev/issues/6381 The solution is to either disable mutagen or (imho better) to add this to your config: upload_dirs: - site/assets/files This should bring better performance, a startup without warnings and correct file permissions in /site/assets/files ?
  4. Hey @PavelRadvan this would be the correct syntax: filename: "{$page->name}.pdf", You just have to add the .pdf - that's the indented use. But I've pushed a "fix" that let's you use $page->name as well in v1.7.1
  5. Just upload them on https://imgur.com/upload then once you get "upload completed" copy the image address and post that into the message. That's what I've been doing for years, as I don't have any more upload space ?
  6. Glad you like it ? I'll try to give a quick answer here, but please create dedicated threads for questions, so it's easier to link to them and also the pub is not indexed by google so nobody will find your answer if he/she looks for the same thing. You can define any custom filename like so: $pdf->save(to: '/path/to/your/file.pdf'); But I'm not sure I understand your problem, so maybe create a dedicated post and describe the problem in more detail with a real world example. Not sure what you mean by "signature". On my personal website I'm using https://szimek.github.io/signature_pad/ to create a signature, then I save that signature to a pw pagefile and then I just add that file to the PDF. For QR codes you'd have to use any qr code library and then place the file as a picture on the PDF.
  7. As this episode is kinda funny (at least the first part) I thought I'd share it will all of us: The ProcessWire Truck On the road from Berlin to Vienna (for those who don't know: Austria is on its way to win the EURO2024 Soccer Championship ?) this truck with combination of the baumrock hexagon and the ProcessWire logo instantly caught my attention. Unfortunately I didn't see if Ryan was driving it... ? ? Rock Module Updates ? Now let's get serious! As always we're bringing you the latest module updates to enhance your web development experience. Discover what's new and stay at the forefront of technology with ProcessWire and baumrock.com RockFrontend v3.18.0 Add PR by @gebeer catching an error if $refs is null due to network problems. Thx! Also inspired by a conversation with @gebeer we now have a $rockfrontend->ajax flag that is true if either $config->ajax is true or the request is an HTMX request (where $config->ajax would be false) Improvements to ALFRED (prevent modal on double clicks on links and buttons) Made loadTwig() hookable so you can add your own Twig functions easily. Thx @Spinbox for the suggestion! RockMigrations v4.5.0 You can now disable ProCache on development via $config->disableProcache = true; in your config[-local].php The Deployment class has been updated to read config from a php file. This opens the door for even more automated workflows (eg choosing the right php version directly from the remote server). RockShell v3.1.0 Fixes RockShell loading commands from dot-folders and causing errors when trying to load the same class twice. Improves the "ddevadmin" command to not rely on superuser id 41 RockPageBuilder v5.5.3 Fixes text selection when dragging blocks caused by a recent Chrome update Fixes the shipped Accordion block causing an endless loop on the demo-page. Marks newly added blocks as "temporary" until they are saved at least once. This fixes the problem that when a client clicked on "create new block" on the frontend but then just closed the modal he/she didn't see this block unless he/she reloaded the page. From now on this block will automatically be hidden until the block itself has been saved. Adds inline-checkbox settings. Get RockPageBuilder Here RockForms v1.5.1 Addes support for multi-step forms ?? This update was necessary for RockCommerce checkouts and initially I put all the code there, but I thought it's much better placed in RockForms so we can use multi-step forms wherever we need them ? Get RockForms Here Others RockCommerce: A lot of work has gone into the further development of RockCommerce. Getting product variations done alone was a huge task and took a complete re-write of RockGrid, which is in a really good shape now ? Other modules that have been improved for RockCommerce are RockMollie (for integrating mollie.com payments into ProcessWire) and RockMoney (for handling currency values). Next month I'll be focusing on the cart functionality! That's a wrap for this month, rockstars! ?✨ May your projects compile without errors, your documentation be crystal clear, and your coffee always be strong enough to power your late-night coding sessions. Keep rocking the web, stay curious, and happy coding! Bernhard ?
  8. Hey @herr rilke thx for sending me the files. The good news is that you can please mark this topic as [solved] here in the RockPageBuilder forum, because it is not related to RPB but rather to RockFrontend. The bad news is that the way I designed RockFrontends assets feature does not reliably work with template cache at all. It works with no cache, it works with procache, but it doesn't work with template cache. The problem is that with ProCache we get a 1:1 copy of the rendered page without calling any php files on the request. That's fine, because then all assets are already injected in the <head> and the browser just loads the static files. If template cache is active it's different: Files like _init.php or layout.latte are not loaded and also not all the template php files, but all other php files like RockFrontend.module.php or RockPageBuilder.module.php are loaded. So it's a problem to place $rockfrontend->styles()->add(...) in files that are not loaded and other calls of styles()->add() in files that are. That's what you are seeing. RockPageBuilder assets are being loaded from RockPageBuilder.module.php but uikit files are not, because they are injected from _init.php or layout.latte or _main.php (wherever one might place it) which is skipped by template cache. To be honest I'm not yet sure what to do about this as this would mean a major rewrite of all my projects and likely any project built on top of RockFrontend. The easiest fix for your situation would be to just use ProCache, which is worth every cent. If anybody has a good idea please let me know. I'll have to think about a good solution...
  9. Hey @herr rilke can you provide a list of steps to reproduce or can you share the project as ZIP with all the files + DB dump? In private, of course ?
  10. Hey @herr rilke that exception means that the variable is not defined. That's typically the case when you are using less files that contain uikit variables (like @global-secondary-background) but the uikit base files are not loaded. From what you write I'd try to check whether it is related to permissions or to caching. So you could try to activate only one at a time and check when it breaks. Then we know a little bit more.
  11. 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/
  12. https://processwire.com/api/ref/sanitizer/entities-markdown/
  13. Not at once, but in 3 rounds, first by = then ? then : But I guess you are hitting 80 chars limit anyhow, so maybe something like this would be better?
  14. I guess it would be easy to support Twig as well, but if you want to try Latte that's the safest bet for sure, as that's the combo I'm using everyday. For the basics this page is all you need: https://latte.nette.org/en/tags Thx ?
  15. Hey @Spinbox, thx that makes sense ? Could you please try the latest commit of the dev branch? You can now hook into RockFrontend::loadTwig
  16. Hi. The render() method is already hookable and that one will be called before renderFileTwig(). Would that work? Could you please be more precise with your request? I'm happy to add whatever anyone needs, but I need to understand exactly why things are requested to ensure we don't add anything we don't want to. So could you please explain what the problem is currently and what exactly has to be done to solve it. Maybe provide a specific use case for me to better understand. And maybe provide a PR for it. Input from anybody else using Twig is welcome.
  17. This is fixed in v5.5.3 and will be available to download in a few minutes, thx!
  18. Just because I had this example right now I thought it's a nice real world example why I really like the UIkit + Tailwind combo! I'm building this UI for a webshop where you can choose the taxrate: First I tried to use a <select> but I wanted to show more info in the dropdown and less in the spot where the arrow points to, so I went with a UIkit Drop. Such a dropdown sounds easy to build with some alpine magic at first, but doing it right is quite some effort! For example you have to think about accessibility and add support for keyboard navigation. UIkit has you covered. Another nice thing to mention is that the dropdown shows taxrates first and then the description on the right. This was extremely easy thx to tailwind: <span class='w-8 inline-block'> {$taxrate->taxrate()}% </span> {$taxrate->title} So all I had to do was to make the element inline-block and add a dedicated with (here w-8). That leads to a better table-like rendering ? And finally, UIkit power again: Consider the taxrate element has been hovered/clicked on mobile being at the very bottom of the page. There is not enough room for the dropdown, so UIkit will display it on top of the element automatically ? I wouldn't want to implement that on my own with only TailwindCSS + AlpineJS. Both tools are great, but I also find it great to have proven components from UIkit that I can use and adjust to my needs very quickly. PS: Here is the final snippet that combines all the great tools Latte + UIkit + TailwindCSS and is fully reactive thx to AlpineJS ? <div class='text-xs'> Preis <div class="uk-inline" {$rockcommerce->taxselect->attrs()|noescape} > <span class='cursor-pointer underline'> inkl. <span x-text='taxrate'></span>% MwSt. </span> <div class='uk-card uk-card-default uk-width-auto p-3' uk-drop='offset:10'> <div n:foreach='$rockcommerce->taxrates() as $taxrate' class='uk-text-nowrap' data-text='inkl. {$taxrate->taxrate()}% MwSt.' > <label> <input class="uk-radio mr-1" type="radio" name="taxrate" value="{$taxrate->taxrate()}" x-model='taxrate' > <span class='w-8 inline-block'> {$taxrate->taxrate()}% </span> {$taxrate->title} </label> </div> </div> </div> zzgl. Versandkosten. <br> Verfügbarkeit: Auf Anfrage. </div> Oh... There's another element with some TailwindCSS magic: span with class cursor-pointer underline that makes it look like a link so that the user knows he/she can interact with it.
  19. 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 ?
  20. I'm not sure if we are talking about frontend editing here? For me the issue with the TinyMCE toolbar being wrapped is also on the backend, but only if I have the browser zoomed to > 100%
  21. @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!
  22. Yes! Yes. All the great things that UIkit has to offer: Accordions, Tooltips, Alerts, Offcanvas, Dropdowns etc etc Some parts do unfortunately, but only very, very little, because the profile only uses the @base directives from Tailwind and obviously also the @utilities (for all the great utility classes). @Stefanowitsch found out that we can even turn off preflight in the base component an we tried that on a recent project - he might have some more information on that topic. I'm not sure what you mean here, but you can do whatever you want or prefer. I'm using UIkit components and then add Tailwind for all the individual changes that I need, that are not global. So if I wanted to change the global font-size I'd adjust the UIkit LESS/SCSS variable. If I wanted to change the global "margin-top": Same. But for all the small little changes that would prior go into custom .less files I just add tailwind utility classes. Think of it as UIkit on Steroids ?
  23. 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
  24. Hey @herr rilke any chance your browser is scaled to more than 100% ?
  25. All RPB users please make sure that you remove this line from your Accordion.php block (if you are using it). It will be removed in the installation files on the next version, but if you copied that file you need to remove it manually:
×
×
  • Create New...