fuzendesign
Members-
Posts
62 -
Joined
-
Last visited
Recent Profile Visitors
1,560 profile views
fuzendesign's Achievements
Full Member (4/6)
19
Reputation
-
What a present ?
-
@Jan Romero thank you. I really appreciated this mini tut. It would be awesome to see more of this. Breaking down a single challenge. And then newbies like me can build upon each and utilize each principle as needed. I don’t know if this repo is open to contributions but it would be a nice inclusion here: https://github.com/webmanufaktur/processwire-snippets
-
[Markup Suggestion] For MarkupPagerNav class
fuzendesign replied to fuzendesign's topic in API & Templates
I’m positive they weren’t rendering. I’ve been coding my page for days and couldn’t figure out why there was no output for them. My code makes the left and right arrows appear. (see screenshot) And your code shows 'prev' and 'next'. (see screenshot) I took the code I used from UIKit’s most recent docs. Either execution works for me. Thanks for adding your input. -
Referencing this page: https://processwire.com/api/ref/markup-pager-nav/ The options array for UIKit should read as follows for nextItemLabel & previousItemLabel: // Change options for Uikit "uk-pagination" navigation $options = array( ... 'nextItemLabel' => "<span uk-pagination-next></span>", 'previousItemLabel' => "<span uk-pagination-previous></span>", ... ); Otherwise with UIKit 3 the arrows don’t render.
-
There you go ?. Thanks for responding to my Reddit post. It **really** is an honor.
-
? Introduce yourself!
-
@bernhard you are a gem in this community. I knew I had ran across that code from a trusted source. Anyways, somehow everything seems to be working fine this morning. Love it and thanks!
-
I installed it a few days ago on the recommendation of another developer here. It **is** awesome. I think it would take a while to understand its power but I was able to gleam a few things from it that helped. Thank you @gebeer! P.S. - Do I have to edit the title of this thread to “[SOLVED]"?
-
Funny. Unpoly has been on my try list for months. I bookmark and articles I find. Same with HTMX.
-
So great to hear. I’ve been following HTMX for a while. I like the dev’s pragmatism. Makes me think of Ryan and PW also.
-
I could have sworn I grabbed that from code Ryan or an experienced developer here had use in answering someone’s question.
-
Assuming I go with your code, just to test and using PW docs code—without specifying a template—my email still doesn’t fire on even the most basic example: (My understanding is that this should fire on any page being published on the site. I want to narrow it down to just a specific template, but reducing things to the most basic, can’t figure why this won't work…and yes, I tried various combinations of this code and other for the last few hours.) wire()->addHookAfter('Page::published', function(HookEvent $event) { // Get the object the event occurred on, if needed $pages = $event->object; // Get values of arguments sent to hook (if needed) $page = $event->arguments(0); // your code: $page = $event->arguments[0]; $message = $mail->new(); $message->subject('Hello world') ->to('externalemail@gmail.com') ->from('email@mysitedomain.com') ->body('Hello there big world') ->bodyHTML('<h2>Hello there big world</h2>'); $numSent = $message->send(); });
-
I want to send an email when a page is published or updated. Specifically a template (temp_order_detail). For now, I just want to get the page-update code working. Why does the following code not send an email? I’ve tried using a from address of both my PW admin address and one tied to the domain the site resides on. Neither addresses work. Is there a whitelist in Processwire for valid emails to send from? I have this code in site > ready.php file: wire()->addHookAfter('Pages(template=temp_order_detail)::published', function(HookEvent $event) { // Get the object the event occurred on, if needed $pages = $event->object; // Get values of arguments sent to hook (if needed) $page = $event->arguments(0); // your code: $page = $event->arguments[0]; $mail->new(); $mail->subject("Your order ".$page->title."has been submitted..."); $mail->to("testemail@gmail.com"); $mail->from("emailaccount@mydomain.com"); $mail = bodyHTML("<html><body><p>Your delivery order has been created.</p><p>Blah blah blah ".$page->title."</p></body></html>"); $mail->send(); });
-
No worries @gebeer. You are correct, I should have just hooked into Form Builder and grabbed what I needed there. I’m learning as I go. I’ve never used hooks and this is my first true use of Form Builder. Your efforts were not in vain. I learned much from it that I’m using what I learned for another part of my mini app. The alternate direction I took was passing a Customer ID from form 1…onto form 2…and then querying the email there. It was a much better and smarter solution than I had initially planned since knowing the customer (ID) would allow me to auto populate a field with just **that customer”s** email, instead of sending all customer emails to that dropdown and expecting my client to choose the appropriate email tied to the customer. As you can imagine, not very smart but I was trying to bang something out that would hold me up for a week while I developed this app further. Also, I pointed to that other thread because it contained a similar problem I was encountering. In retrospect, I should have started a **new** thread on that post instead of posting to Solved. Another learned moment. And just yesterday, I understood why my code in that other thread wasn’t working. Thanks again for your initiative. The PW community is great.