-
Posts
6,259 -
Joined
-
Last visited
-
Days Won
312
Everything posted by bernhard
-
Great! This has been annoying me over the last few days as well (and on any previous project), but it was not annoying enough to have the idea of supporting custom stubs per project so your input was highly appreciated ? If any of you guys have any other suggestions how to further improve the day to day development experience when using RockPageBuilder please let me know!
-
Here you go: This version will be merged next week. I'll send you a copy to test!
-
Unfortunately the spambot message has been deleted, so my love letter is only half funny... @Gideon So credits go to the AI ?
-
Remove field from page edit or any repeater field within it.
bernhard replied to elabx's topic in General Support
Why do you add a hook inside the hook? Just grab the field and set the collapsed state: <?php $wire->addHookAfter("ProcessPageEdit::buildFormContent", function ($event) { $form = $event->return; $f = $form->get('some_field'); if($f) $f->collapsed = Inputfield::collapsedHidden; }); I think this should work. Note that I'm using addHookAfter, not before! -
Dear Spambot, Oh, how my heart flutters at the sight of your unsolicited message! Your offer of ngrok alternatives has me weak at the knees. But alas, our love can never be, for my heart belongs to ProcessWire. You see, while you're busy tunneling through firewalls, ProcessWire is tunneling straight into my developer soul. Its flexibility is more enticing than any port forwarding you could offer. Its API is smoother than your smoothest proxy connection. I'm afraid your alternatives just can't compete with ProcessWire's modules. They're the only plugins I need in my life. So farewell, my automated advertiser. May your packets find their way to greener pastures, for this forum is already in a committed relationship with the CMS of its dreams. Forever ProcessWired, Bernhard ?
-
The reason I'm asking is that I had similar plans but on my research I read everywhere that getting good mail delivery rates seems to be a nightmare. Hetzner for example has a limit of 500 mails per hour (https://www.hetzner.com/legal/webhosting) for their webhosting products. If I remember correctly it's the same for their VPS, when I contacted support. So that made me drop the idea of self-hosting/developing my own newsletter system. https://sendy.co/ might also be an option. They use Amazon SES for sending mails, which is very cheap. I've bought sendy to play around with, but it looks dated and I never took it to production... Thx, looks interesting. Here is a good and recent video about it:
-
Almost any website that I build needs some kind of differently coloured sections... Unfortunately this is not so easy to accomplish. I've come up with several concepts over the time, but this one is very cool and promising imho ? Anybody interested in more details or is that something nobody needs? How did/do you solve that?
-
This looks interesting, but I'm wondering... Are you using this to send mass e-mails? Or just mails for form submissions or signup notifications and such?
-
Consistent errors during installation - does anyone else get these?
bernhard replied to BrendonKoz's topic in General Support
I don't think that this is very helpful, but maybe someone sees something helpful in this AI help, so I'll share it: -
[Solved] How to make trash icon available in Alfred for non-superuser
bernhard replied to iank's topic in RockPageBuilder
Ok great, thx ? RPB blocks inherit permissions from the page where the field lives on. Would be great to mark this as [solved], thx ? -
Thx @adrian for your help. Interestingly today the error was gone!! I found out that it only appears when logged in. And then I found out that it seems to come from something else, not the debug bar. I'm quite sure it was related to tracy some time ago, so something must be different than back then. But who knows, maybe it was not related to tracy at that time as well. I'll have to investigate further...
-
Consistent errors during installation - does anyone else get these?
bernhard replied to BrendonKoz's topic in General Support
DDEV + PHP8.1/2/3: No warnings. -
Hey @adrian I had to go back to my initial setup with filling the remaining space with the footer color due to several reasons (mainly my pagebuilder setup with different coloured sections). Any chance you can have a look into this? Or just give me a hint where these things are defined ? Thx!
-
RockIcons - Easily select from thousands of SVG icons
bernhard replied to bernhard's topic in Modules/Plugins
Hey @FireWire thank you very much. Not sure about this one. Some libraries like fontawesome come with dedicated folders, like for solid icons or for brands. In some cases it might make more sense to sort by folder (eg to have all brands together), in others it might be different (like in your example). I don't really want to change the default behaviour as this would change existing installations. I mean... I don't know of anybody besides you and me using this module, but nonetheless I'm not sure if changing the default is a good idea. Maybe we need a setting for that? -
Scrollclass feature is not working anymore
bernhard replied to Stefanowitsch's topic in RockFrontend
Thx, I've added your suggested fix!- 1 reply
-
- 1
-
PM Update: He was loading jQuery on the frontend which interfered with PW's modal implementation of frontend editing. Removing jquery resolved the issue.
-
Show "last modified by user" info in Frontend Edit Modal
bernhard replied to Stefanowitsch's topic in RockPageBuilder
Here you go: wire()->addHookAfter('ProcessPageEdit::buildForm', function ($event) { $page = $event->object->getPage(); if (!$page instanceof \RockPageBuilder\Block) return; $form = $event->return; $user = $page->modifiedUser->name; $relativeTime = wire()->datetime->relativeTimeStr($page->modified); $form->prepend(rockmigrations()->inputfield([ 'type' => 'markup', 'label' => 'Block Info', 'icon' => 'clock-o', 'value' => "Zuletzt bearbeitet von: $user ($relativeTime)", ])); }); This will show the info for all blocks, but you can define conditions as you need on the $page object. -
[Solved] How to make trash icon available in Alfred for non-superuser
bernhard replied to iank's topic in RockPageBuilder
Hey @iank sorry for the delay. I'm investigating! Any news from your side? It seems I can't duplicate this any more ? -
RockSettings - Manage common site settings like a boss.
bernhard replied to bernhard's topic in Modules/Plugins
@FireWire cleaning up my inbox ? Did you find anything? -
Here you go: alias ddc="limactl start && ddev config --php-version=8.3 --database=mariadb:10.6 --webserver-type=apache-fpm --timezone=Europe/Vienna --omit-containers=dba --web-environment='TRACY_LOCALROOTPATH=\$DDEV_APPROOT/' --upload-dirs='site/assets/files,foo/bar'" Note that you need to reload your shell after updating your alias file!
-
RockShell - a ProcessWire Commandline Companion ⌨️
bernhard replied to bernhard's topic in Modules/Plugins
Hi @Jonathan Lahijani I think that should work. I just didn't have a need for it and it will need some adjustments to the command but I'm happy to merge it if you want to work on that. -
I've created a custom alias: So all I have to do is type "ddc" and hit enter
-
Repeater fields in block migrations and duplicate template generation
bernhard replied to FireWire's topic in RockPageBuilder
I don't think that it is related to RPB, but not sure. I can't give you access to RPB on github, but that's not necessary anyhow. If you find something just send me the files and I'll merge them manually. I have to admit though that it's not a priority for me to keep these migrations code sections 100% accurate. It's there to get help when writing migrations but it's definitely nothing that should be copied 1:1 There are many inconsistencies in PW api / migrations API like for example RM using field and template names all over and PW using ids, which is not readable/maintainable in migrations. So I'm not sure how much work the problem you have found justifies ?