-
Posts
1,479 -
Joined
-
Last visited
-
Days Won
21
Everything posted by elabx
-
I've always wondered why does this involve better performance? I've read it's better at serving static files? I have uses runcloud/serverpilot which use nginx as reverse proxy, but I haven't really taken the time to test for speed or to understand if ProcessWire takes advantage of this.
-
WOW NICE! Life is what happens when you are editing template context values.
-
I'm not familiar with Django but for what I've seen, most PW users try to "translate" any other app models into page templates, and make a migration using either queries to the original database or leveraging any sort of API (REST/XML?), and creating the pages using the PW API.
-
Hi everyone! Has anyone worked with the Paypal Javascript SDK? I understand I can do this, for funding errors, but is this really the only error that could get thrown by the SDK? I'd like to test it like implied in the negative testing docs, but I don't know where to set the headers on the Buttons javascript object (or if it is even possible).
-
And talking about "shop features" there's https://www.padloper.pw/ But I'm guessing you'll still have to do some dev work. There's also this module to compliment padloper: https://modules.processwire.com/modules/payment-mollie/ What you mean with "simplest solution"? For me simplest would be a payment button with an input to indicate quantity and that's it. But don't know if you want to save as orders, accounts, etc.
-
I think the best chance is to post it in the issues github repo.
-
How to insert additional checkbox into page edit form
elabx replied to FlorianA's topic in API & Templates
Thanks @Robin S ! I won't add useless Checkboxes anymore to my templates! :D -
How to insert additional checkbox into page edit form
elabx replied to FlorianA's topic in API & Templates
My normal take on this is adding a normal checkbox field to the template (even though I guess it's an overkill ). That way on Pages::saved I can check for the value and reset it to unchecked saving only the field. Probably adding the field through an "after" hook on ProcessPageEdit::buildForm (or buildFormContent) as it returns the object that has the form fields so you can go through them and add other stuff you might need. Though I wouldn't know on which other hook I could catch it to process the input. (for example, I don't know if the data from this fake field would reach Pages::saved or even create an error). -
Wow thanks! I'm constantly searching PW source for hook references, this will be very useful!
-
That feeling is simply awesome! Welcome to the community :)
-
You can take a look at this module: Or you can build your own image uploader with something like Dropzone.js and some guide from this topic: I think the main backend code to upload and save image to disk and add to page field is within this post: https://processwire.com/talk/topic/67-front-end-image-uploader-like-admin/?do=findComment&comment=3790 $size=filesize($_FILES['imageUpload']['tmp_name']); if ($size > MAX_SIZE*1024){ print 'File troppo grosso'; exit; } //copy the image in secure folder $image_name=time().'.'.$extension; $newname="../site/tmpfiles/profiles/".$image_name; $copied = copy($_FILES['imageUpload']['tmp_name'], $newname); if ($copied) { $userid = $sanitizer->text($input->post->userid); $u = $users->get($userid); $u->setOutputFormatting(false); $u->profilephoto->add("http://".$_SERVER['HTTP_HOST']."/site/tmpfiles/profiles/".$image_name); $u->save(); //delete copied image $tmpfile = $_SERVER["DOCUMENT_ROOT"]."/site/tmpfiles/profiles/".$image_name; if (file_exists($tmpfile)) { unlink ($tmpfile); } }else{ print "Errore nel salvataggio del file."; exit; }
-
For what I understand you don't really need a plugin even though one could do it, from the last time I implemented something like this it's just javascript placed on the header/footer and placing the right HTML element.
-
The validation/publishing is easily setup with users that can create and edit, but not publish permissions. About Jetpack, that I don't know, maybe just Google Analytics? I'd use AdminOnSteroids adjustments for CKEditor. I have a magazine project with some friends running around a 1,000 articles for a couple years, 30k visits a months or more, and the only maintenance I give is new features, in a Wordpress site you'd have to be updating everything like every couple weeks or less and praying nothing dies (maybe it's an exaggeration by this point? but has happened to me when I still used WP for a couple project. )
-
I just ran into a similar problem a couple weeks ago. The fix that did it for us was increasing innodb_buffer_pool_size from 4G to 20G BUT, after that just a couple weeks ago I got errors with data corruption, can't say if it's related.
-
And it's MIT? Let's fork it and make it InputfieldNiceEditor haha
-
Check this out people, Kirby also just launched their new editor in a similar fashion: https://github.com/getkirby/editor
-
Try this: https://processwire.com/api/ref/wire-array/get-values/
-
Great purchase which will save you a lot of time:
-
When you insert an image through CKEditor, ideally I'd want to grab the description from the image's description field. CKEditor Inputfields fields have an option called "Image management" that should enable this: https://processwire.com/docs/fields/textarea-fieldtype/#markup-html-option I just can't get this to work well, if I add a new image to the text fields, their descriptions are not pulled from the images. My bad again man, I kept on reviewing this on the CKeditor source and just realized this is done on runtime.
-
Clarification on how description and ALT attributes are used
elabx replied to Lance O.'s topic in General Support
Hi everyone! Does anyone know if this has been fixed in recent versions? Still broken for me on 3.0.136 My bad here, I kept on reviewing the source code in CKEditor and this is done at runtime.- 10 replies
-
@kongondo Finally managed to updated!! But you know what, now I didn't have to clear anything, it just worked after a module refresh!! Just so you have more info, the only difference was that I namespaced the old modules (in a desperate attempt to bring back everything to work because it kind of broke after I rolled back from my first install failure). honestly don't have very clear what happened, but indeed the new version works flawlessly. Questions/issues: I don't seem to be able to drag and drop over the Inputfield. I can give you access to my site if you need to debug. I cannot seem to find the edit button for the image description now, the one that was placed at the top right? Is there a new way to edit the descriptions? Appending how my images look when I click on them. Jut realized now this is done in a normal, maybe you could enable an Edit link right on the Inputfield? At least on my site it's not showing, I'd guess that's the most practical for editors, instead of opening the Media Manager Popup. I cannot get the alt text on images placed in CKEditor to update accordingly, I also have the setting updated in the Inputfield configuration, have you had any issues with this? All my questions crossed where solved configuring the Inputfield :) This is a GREAT update kongondo! I know this has been mentioned before but the improvement in the UI is a huge plus! I see you mentioned you have a lot of users that had never mentioned this, but in my case as with other PW users, all my clients complained about the lack of polish in UI, but this update really solves a lot of the inconveniences.
-
honestly It's something that doesn't happen very often and I had even bragged about LiquidWeb support which is my main choice for projects that demand a nice hosting setup. But this time not even their "best effort" team managed to find a solution. Indeed we ended up hiring service from Percona to see if they can tune our database and figure out if we are getting hit by a MariaDB bug.
-
When their family settings are set you can let is put a timestamp in the name. https://processwire.com/docs/modules/guides/process-template/
-
@wbmnfktr Would be great to read about it! Wouldn't like to bother you on the weekend or anything, so please take your time, thanks for your kind offer. It's not urgent and I'm still not sure this is the answer for my "higher availability", at least what triggered this search now was this mysql server going down and well, I'm obviously not that well versed in the whole mysql administration. So the whole JAM Stack hyped brought me to looking into this option, since also most of the sites I maintain in this scenario are static and with the user interaction going as far as the usual contact/signup forms.