Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/06/2018 in all areas

  1. Yes, I get the same error. Seems to be caused by two button inputfields being rendered in the same form. I have created a simple test case and have opened a GitHub issue: https://github.com/processwire/processwire-issues/issues/653
    7 points
  2. Get ready for a face palm ? On line # 145 public function __processInput(WireInputData $input) { the method processInput() is missing one underscore at the beginning and should be public function ___processInput(WireInputData $input) {
    6 points
  3. Not new, but a website I've worked on for a year or so in continous development. http://supercarownerscircle.com/ I originally inherited the site from another web design company - upgraded PW and over the year added ecommerce using the Stripe module and a custom integration, revamped the frontend and added lots of new templates. Also did some frontend work on the shopify shop.
    5 points
  4. Another new site only recently finished (so there still might be bugs :) http://www.ethicalby.design/ Ethical by Design is my new personal project. I've been running a podcast called the Machine Ethics Podcast: about the social impact of AI. Over the last few years I've learnt alot and I'm now hoping to help businesses learn about or implemented AI responsibly. Branding done by Nick Willsher, and the site was designed and coded by myself. Hoping to spin this one out into a more configurable site profile for the community soon.
    5 points
  5. This is the shortest method using implode(): if($page->authors->count) echo $page->authors->implode("; ", "<a href='{url}'>{title}</a>") . ".";
    4 points
  6. Hello, can you try this: $pages->find("(prod_othercategories=$page),(parent=$page), template=prod_series, sort=title, prod_status_pages!=1554|1559|1560|4242"); Regards.
    3 points
  7. Just a suggestion, as @wbmnfktr said, you should limit the size for the video on client editing. Then give them a note that they have to use **a video converter from a web service** prior to upload the video to the backend. With https://clipchamp.com/en/products/utilities your video can be reduced from 72MB to 15MB with a really decent quality. Settings are : Preset: Web Resolution: 720p Format: mp4 Quality: Medium You should give a try ✌️ ps: I am not affiliated with them but there are a free plan. Mods, feel free to remove the link..
    3 points
  8. Sure thing - just added to the latest version. I know you know this already, but just a reminder for others that you can also do: d($page, [6]); to control the exact depth of the array/object being dumped.
    3 points
  9. You need to set the type of the repeater matrix.... ie: $new->repeater_matrix_type = 1; and save the item before adding files. And you don't need to add the new item to the field after that, it's already added.
    3 points
  10. Hi. After update to 3.0.109 from 3.0.106 when I try to access DB backup modules page I get Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) PHP 7.2.4 Laragon Does anybody get the same error?
    3 points
  11. That's crazy! Wild guess: does giving them custom names or IDs change anything?
    3 points
  12. I was honestly expecting a facepalm (missing $, semi-colon, or maybe typehint). Thank you so, so, so, so much!
    2 points
  13. I just pushed the update to support multiple forms on one page. Unfortunately it's not perfect, because Nette Forms have some issues here ? But at least it works for my scenario...
    2 points
  14. Wow. This is an incredible feedback and an amazingly friendly forum. I thank everyone who took the time to offer me a solution to my problem. I have now started with the first solution of teppo (the implode() method of the WireArray class), and it worked immediately. Thank you, thank you and thank you again! I will now have another thorough look at the other solutions proposed by Dragan, AndZyk and OLSA and then give you a feedback that may also help other users who stumble across the same problem. Thank you very much and have a nice day! Hajosch
    2 points
  15. Are you using the default installation of Xampp or have you set a new SQL password? Are you using the xampp root user? The message actually only says that the logon data is incorrect, or the user has no rights to access the database.
    2 points
  16. You have to save a newly created page (including a repeater page) before you can add files or images to it. $added = $p->member_mx_images->getNew(); $added->save(); $added->member_images->add($responseAdded['imageURL']); $added->crm_products_sold = $products; $added->save(); $p->of(false); $p->member_mx_images->add($added); $p->save();
    2 points
  17. https://processwire.com/api/ref/sanitizer/text/ $sanitizer->text($input->post->message, [ 'maxLength' => 0 // no limit ]); But I think that more suitable method in your case is textarea https://processwire.com/api/ref/sanitizer/textarea/
    2 points
  18. You can change label field globally in the setting of ProcessPageList module - {title} | {template.name}
    2 points
  19. Attention: This is the thread for the archived open source version of RockPdf. This module is neither developed any further nor maintained nor will it get any fixes. Modules Directory: https://modules.processwire.com/modules/rock-pdf/ Download & Docs: https://github.com/BernhardBaumrock/RockPDF Please see the new version here:
    1 point
  20. I would agree with that to a certain point. Imagine your client uploads a few hundred images with 12 MB+ each. If they explicitly ask for the possibility to upload super high-res images it's another story.
    1 point
  21. In case of images you can let them upload what they want, but ensure that it is in highest possible quality. For the output you define width x height, quality and even output format (jpeg), if they use png were not appropriate. ?
    1 point
  22. In case of images I would limit upload sizes as in height/width and MB. In case of videos it depends on where they were used. As a movie I wouldn't care that much about size but I would load them only on demand. As a background video I would limit size.
    1 point
  23. Just out of curiosity but will you try to downsize the homepage's size in the future? 82.6 MB is quite a big number.
    1 point
  24. So you didn't integrate the shop into the PW website in the end? (I remember you were looking for a solution). What stopped you from doing it? Just curious here ? Great work!
    1 point
  25. This may be necessary on some hosters but definitely not on the hoster Strato. ?
    1 point
  26. I was just thinking the same thing and giving them names does fix it. But up until now it hasn't been a requirement for button inputfields to have name attributes.
    1 point
  27. Yes, I get an out of memory error with this simple test module: <?php namespace ProcessWire; class ProcessTest extends Process { public static function getModuleInfo() { return array( 'title' => 'Process Test', 'version' => 1, 'page' => array( 'name' => 'test', 'parent' => 'setup', 'title' => 'Test', ), ); } public function ___execute() { $form = $this->modules->get('InputfieldForm'); $f = $this->modules->get('InputfieldButton'); $f->value = 'foo'; $form->add($f); $f = $this->modules->get('InputfieldButton'); $f->value = 'bar'; $form->add($f); return $form->render(); } }
    1 point
  28. I have PW 3.0.109, PHP 7.1.19-nmm1 and a older DB-Backup-Moduleversion. Everything is working fine. Which version of DB-Backup module do you use?
    1 point
  29. Hi @psy. Please request @apeisa to give you access. He has the 'keys' :-).
    1 point
  30. Hi @j00st, I have checked your images. They are alright, nothing suspicious. When I set the memory_limit to under 96M, it wasn't possible to resize a single image. WIth set to 96M, it was most of the time, but sometimes not, when resizing multiple images in one script run. You have set it to 128M on your host. If you are able, increase it to 256M. Animated images gets extracted slide for slide into memory. Each slide is processed in a single conversion process and consumes three times the memory of the single slide. Also the process includes a flushing and releasing of no further needed objects and memory, this is known to be buggy (or unclean) in PHP. So, the issue on your host definetly is assigned to low allowed memory usage for (php) image processing. If you set debug to true, every resize action is logged into "image-sizer" log under admin->setup->logs. And you definetly need to use "forceNew" in your resize calls when debugging and testing!
    1 point
  31. See all the options available here: https://processwire.com/api/variables/sanitizer/
    1 point
  32. Hi Adrian, what do you think about adding a db() method/shortcut? So just like bdb() but for use (mainly) in the Tracy Console?
    1 point
  33. Thanks for the new updates @ryan! Do you think for the next week or two the focus could be on bringing the Selectors documentation up to date? This is a really important part of the documentation, especially for new users. New API methods get added to the API documentation automatically which is great, but that doesn't happen for new selector features because the documentation for Selectors isn't derived from code comments in the core. I went back through previous blog posts and compiled a list of things that it would be nice to have covered in the Selectors docs. has_parent now supports multiple values: https://processwire.com/blog/posts/processwire-core-and-profields-updates-2.5.22/#has_parent-selectors-now-support-multi-value The ~= operator now supports words with fewer than 4 characters: https://processwire.com/blog/posts/merry-christmas-heres-processwire-3.0.3-and-2.7.3-and-some-more/#improvements-to-the-operator-in-page-finding-operations Nested sub-selectors are now supported: http://processwire.com/blog/posts/processwire-3.0.6-brings-pages-upgrades-and-link-abstraction/#support-for-nested-sub-selectors It is now possible to sort by custom fields of a parent page: https://processwire.com/blog/posts/processwire-3.0.7-expands-field-rendering-page-path-history-and-more/#whats-new-in-3.0.7 New selector array syntax: https://processwire.com/blog/posts/processwire-3.0.13-selector-upgrades-and-new-form-builder-version/#selector-engine-array-support It would be good to explain about the verbose option for selector arrays too and what circumstances that is needed in. And perhaps some mention of using the Selectors class to merge different types of selector together: https://processwire.com/talk/topic/16651-merge-selectors/?do=findComment&amp;comment=146890 Multiple dot selectors: https://processwire.com/blog/posts/pw-3.0.25/#syntax-and-examples Negative start and limit, and matching by index: https://processwire.com/blog/posts/pw-3.0.46-stocking-stuffers/#support-for-negative-limit-and-start-values-in-selectors Use Fieldtype in selectors: https://processwire.com/blog/posts/processwire-3.0.91-core-updates/ Owner selectors: http://processwire.com/blog/posts/processwire-3.0.95-core-updates/ Use field tags in selectors: https://processwire.com/blog/posts/pw-3.0.106/#a-new-way-to-search-with-upgraded-tags-for-fields If anyone knows any other new selector features not included in the Selectors documentation maybe they could post a reminder about them here? Another thing it would be good to cover in the Selectors docs are the differences between what is supported in a PageFinder selector and what is supported in an in-memory selector. I mentioned a few differences that I know about in a comment here: https://processwire.com/talk/topic/18343-selector-filter-for-multiple-dates/?do=findComment&amp;comment=160451 And perhaps there is a way to bring support for some of those things to in-memory selectors to reduce the differences between the two types of selector?
    1 point
  34. Thanks Benhard for this module, small modification i've updated the save() function to allow various output types as stated: https://mpdf.github.io/reference/mpdf-functions/output.html /* ########## output ########## */ /** * save output to: local file ($dest = "FILE") download ($dest = "DOWNLOAD") inline to browser (default - $dest = "INLINE") */ public function save($filename = 'output.pdf', $dest = "INLINE") { if(!$filename) $filename = 'output.pdf'; if($dest == "FILE") $filename = $this->getAbsolute($filename); // save to disk $this->mpdf->Output($filename, constant('\Mpdf\Output\Destination::'.$dest)); } // stream to browser $pdf->save(); $pdf->save('filename.pdf') $pdf->save('filename.pdf,'INLINE); // force download $pdf->save('myfile.pdf','DOWNLOAD'); // save locally $pdf->save('myfileserver.pdf','FILE');
    1 point
  35. Update: LoolEditor now uses its own simple modal without a title bar since the editor's close button also closes the modal. Things feel a lot smoother now. I think PW is currently the only CMS that integrates LibreOffice for free
    1 point
  36. I really would hesitate to use or propagate the use of disqus. Some links: The Hidden Price of Using Disqus Why I killed Disqus Commenting on my site You can easily find more worth considering...
    1 point
  37. You mean @horst's Image Animated GIF module? Compatibility is set to 2.5, 2.6, 2.7, 3.0, so maybe that's why?
    1 point
  38. Don't Show API Form Labels (If I may add this here for the sake of completeness.) I have been looking for a way to leave the label out of the markup that does not involve recreating a module (a silly thing to do). The solution we have been using up until this point was a blank label. (Resulting in unnecessary markup and a negative margin.) However curiosity took me to the Inputfield module. Hey great job on these fields BTW. Reading the file I came across these options. const skipLabelNo = false; // don't skip the label at all (default) const skipLabelFor = true; // don't use a 'for' attribute with the <label> const skipLabelHeader = 2; // don't use a ui-widget-header label at all const skipLabelBlank = 4; // skip the label only when blank // wire/core/Inputfield.php Found in: in Inputfield.php The best solution I found to use this in a form builder. (I would like to credit this to somma's comment on checkbox-other-text-in-header-than-label-text) //controller.php $submit = $modules->get("InputfieldSubmit"); $submit->skipLabel = Inputfield::skipLabelBlank; //HERE IS THE SOLUTION! $submit->attr("value","SUBMIT"); $submit->attr("id+name","submit"); $submit->attr("class","button"); $form->append($form_submit); Thank you Somma! Thank you Ryan!
    1 point
×
×
  • Create New...