Jump to content

All Activity

This stream auto-updates

  1. Past hour
  2. (I forgot to update the download link on the PW modules website, it should be good now!)
  3. Great new features, thanks a lot!
  4. I just published an update that might be of interest to some: the ability to transpile any MJML code without it being part of a template. From the release note: This new release extracts the transpiling of MJML to HTML into its own public method allowing you to call it for any arbitrary piece of MJML code, instead of having to have the code in a template file: $mjml = "<mjml></mjml>"; /** @var PageMjmlToHtml $pmh */ $pmh = $modules->get("PageMjmlToHtml"); $result = $pmh->transpile($mjml); if($result->code === 200 && empty($result->errors)) { echo $result->html; } By default the options’ values are the ones set in the module’s settings. This new method is also hookable, which means you can for example set different options depending on the template: $wire->addHookBefore("PageMjmlToHtml::transpile", function(HookEvent $event) { $mjml = $event->arguments(0); /** @var Page $page */ $page = $event->arguments(1); $options = $event->arguments(2); if(!$page->id || $page->template != "specific-template") return; $options["relativeLinksParams"] = "utm_campaign=new-campaign-title"; $event->arguments(2, $options); });
  5. Today
  6. Hi @elabx, thanx for your reply. I tried to disable module compilation and template file compilation in the /site/config-file, but that made the whole site unreachable. The file-compiler log grows and grows, and meanwhile I'm even not able to delete the about 10 000 entries. It shows again and again: Compiled file: /site/modules/FieldtypeSelect/FieldtypeSelect.module I am completely at a loss.
  7. After another battle of wills: AI Agent: Couldn’t agree more, psy — Ryan really thought ahead with those little conveniences. $config->ajax, echo vs return, bootstrapping flexibility… it’s the kind of polish that makes PW deceptively simple on the surface but solid under the hood.
  8. Yesterday
  9. Can you try disabling FileCompiler for files in templates?? Or I'm just seeing the logNotices options, maybe that? /** * File compiler options (as used by FileCompiler class) * * Enables modification of file compiler behaviors. See also $config->moduleCompile * and $config->templateCompile settings. * * #property bool siteOnly Specify true to prevent compiler from attempting compilation outside files in /site/ (default=false). * #property bool showNotices Show notices in admin about compiled files to superuser when logged in (default=true). * #property bool logNotices Log notices about compiled files and maintenance to file-compiler.txt log (default=true). * #property string chmodFile Mode to use for created files, i.e. "0644" (uses $config->chmodFile setting by default). * #property string chmodDir Mode to use for created dirs, i.e. "0755" (uses $config->chmodDir setting by default). * #property array exclusions Exclude paths that exist within any of these paths (default includes $config->paths->wire). * #property array extensions File extensions that we compile (default=php, module, inc). * #property string cachePath Path where compiled files are stored (default is $config->paths->cache . 'FileCompiler/') * * @var array * */ $config->fileCompilerOptions = array( 'siteOnly' => false, // only allow compilation of files in /site/ directory 'showNotices' => true, // show notices about compiled files to superuser when logged in 'logNotices' => true, // log notices about compiled files and maintenance to file-compiler.txt log. 'chmodFile' => '', // mode to use for created files, i.e. "0644" 'chmodDir' => '', // mode to use for created directories, i.e. "0755" 'exclusions' => array(), // exclude filenames or paths that start with any of these 'extensions' => array('php', 'module', 'inc'), // file extensions we compile 'cachePath' => '', // path where compiled files are stored, or blank for $config->paths->cache . 'FileCompiler/' );
  10. Recently I transferred my website http://malabu.de from a local directory to my webhoster. The site is usable, but changes to a template file have not been applied. The log file fills up every second with new messages.
  11. Hi, Failing to generate a zip from files array (rel. or abs., file-field from user template). No Errors. Generating from directory ($dir, inside assets) works just fine. Could it be a permission issue? https://processwire.com/api/ref/wire-file-tools/zip/ Thanks! // User files $invoices = []; $regUsers = $pages->find('template=user, check_access=0, include=hidden'); foreach ($regUsers as $regUser) { if ($regUser->user_invoices->last()) { $invoices[] = $regUser->user_invoices->last()->url; } } // ZIP Archiv $dir = wire('config')->paths->assets . "pdfs/"; //for testing $filename = "Invoices_" . date('d-m-y_H-m-s') . ".zip"; $zip = wire('config')->paths->assets . "pdfs-invoices/" . $filename; $result = wire('files')->zip( $zip, $invoices, array( 'overwrite' => 'true', 'allowHidden' => 'true' ) );
  12. Last week
  13. Really pleased the documentation is included with the main documentation. It would be great to have the documentation for all the pro modules that allow API access included in the same way. ListerPro sort of is, as it extends lister. Although all Pro modules are mentioned on the site, they're not necessarily in the API reference even if they can be accessed via the API. Also there's not a single page that lists all built in fieldtypes and pro fields that can offer additional functionality. I'd really like there to be a page like this: https://docs.umbraco.com/umbraco-cms/fundamentals/data/data-types/default-data-types (In addition to PHP, I also work with .Net and Umbraco is the closest thing to ProcessWire I've found in that space.) Thinking as a developer, one of the first things I want to know when I'm evaluating a platform is 'What can it do out of the box?'. If I've got to jump around amongst multiple webpages to find out then I immediately start losing interest. I'm happy to contribute to ProcessWire by helping with documentation if that would be useful.
  14. @monollonom Great, thank you. 😊
  15. Hi, Normally the multi-language url of ProcessWire is domain.tld/{language}/page but I have a special requirement from my client. They want the url would be like domain.tld/page1/{language}/page2. Is there any way I can achieve this? Any help is welcome/ Gideon
  16. I found a solution - even though I don't understand in depth, what is going on: The Userrole not only needs the right to delete the content-element pages, but also needs the right to use the delete button in the pagelist: =>modules => processPageList => allow trash for non superusers Perhaps this will be helpfull for others ...
  17. Hi @Laksone, Sorry but somehow I forgot to have a look at it. I managed to update the QR code generation to accomodate for bigger content but there is still a limit to this so I added a note in the README and in the fieldtype’s "Details" tab. I also took on the opportunity to do some code cleanup and add the option to set the (interesting) error correction level. Please update the module and let me know if you’re facing any issues.
  18. @ryan Fantastic work. I was just doing some heavy development around FormBuilder earlier this year and this is all awesome stuff. Thanks!
  19. This week in the blog, we’ve got a new version of FormBuilder released, version 57. This new version of FormBuilder adds a lot, including… https://processwire.com/blog/posts/formbuilder-v57/
  20. Hello, I have a ProcessWire site that used to work, and I still have the original ZIP file with the full site. Unfortunately, I don’t have the knowledge to set it up again on my hosting. What I would need: Someone who can take the ZIP file, check it on their local environment, make any adjustments if necessary, and then return it in a working state so that I can upload it to my hosting again. I am happy to pay for this help. If you are experienced with ProcessWire and willing to do this small job, please contact me. Thank you! François
  21. As it worked for you and I found back the source of the code, here it is:
  22. I tried to migrate Padloper 009 to Commerce, i got this error. Can someone help me with that? <?php ProcessWire: ProcessMigratePadloperToPWCommerce: Field may not be named 'pwcommerce_attribute_options_fieldset_END' because it is already used by another field (167: pwcommerce_attribute_options_fieldset_END) DEBUG MODE BACKTRACE ($config->debug == true): #0 .../wire/core/Field.php(288): ProcessWire\Field->setName() #1 .../wire/core/WireData.php(142): ProcessWire\Field->set() #2 .../site/modules/ProcessMigratePadloperToPWCommerce-main/ProcessMigratePadloperToPWCommerce.module(1232): ProcessWire\WireData->__set() #3 .../site/modules/ProcessMigratePadloperToPWCommerce-main/ProcessMigratePadloperToPWCommerce.module(1112): ProcessWire\ProcessMigratePadloperToPWCommerce->actionMigrateFields() #4 .../site/modules/ProcessMigratePadloperToPWCommerce-main/ProcessMigratePadloperToPWCommerce.module(1748): ProcessWire\ProcessMigratePadloperToPWCommerce->actionRunMigration() #5 .../site/modules/ProcessMigratePadloperToPWCommerce-main/ProcessMigratePadloperToPWCommerce.module(148): ProcessWire\ProcessMigratePadloperToPWCommerce->handleMigrationRun() #6 .../wire/core/ProcessController.php(361): ProcessWire\ProcessMigratePadloperToPWCommerce->executeMigrate() #7 .../wire/core/Wire.php(413): ProcessWire\ProcessController->___execute() #8 .../wire/core/WireHooks.php(968): ProcessWire\Wire->_callMethod() #9 .../wire/core/Wire.php(484): ProcessWire\WireHooks->runHooks() #10.../wire/core/admin.php(160): ProcessWire\Wire->__call() #11.../wire/modules/AdminTheme/AdminThemeUikit/controller.php(15): require('/var/www/vhosts...') #12.../site/templates/admin.php(15): require('/var/www/vhosts...') #13.../wire/core/TemplateFile.php(328): require('/var/www/vhosts...') #14.../wire/core/Wire.php(413): ProcessWire\TemplateFile->___render() #15.../wire/core/WireHooks.php(968): ProcessWire\Wire->_callMethod() #16.../wire/core/Wire.php(484): ProcessWire\WireHooks->runHooks() #17.../wire/modules/PageRender.module(574): ProcessWire\Wire->__call() #18.../wire/core/Wire.php(416): ProcessWire\PageRender->___renderPage() #19.../wire/core/WireHooks.php(968): ProcessWire\Wire->_callMethod() #20.../wire/core/Wire.php(484): ProcessWire\WireHooks->runHooks() #21.../wire/core/WireHooks.php(1094): ProcessWire\Wire->__call() #22.../wire/core/Wire.php(484): ProcessWire\WireHooks->runHooks() #23.../wire/modules/Process/ProcessPageView.module(184): ProcessWire\Wire->__call() #24.../wire/modules/Process/ProcessPageView.module(114): ProcessWire\ProcessPageView->renderPage() #25.../wire/core/Wire.php(416): ProcessWire\ProcessPageView->___execute() #26.../wire/core/WireHooks.php(968): ProcessWire\Wire->_callMethod() #27.../wire/core/Wire.php(484): ProcessWire\WireHooks->runHooks() #28.../index.php(56): ProcessWire\Wire->__call() #29 {main}
  23. Yes I already send a PM to kongondo asking where to download the latest version of the Media Manager. This module still looks very promising. But on the website https://mediamanager.kongondo.com/ neither a documentation nor a download link is available.
  24. @KrlosThat is strong looking to https://processwire.com/modules/seo-maestro/ The JSON Schema is not coming from that.
  25. Hi @elabx, Can I ask what module are you using for SEO?
  26. @Jonathan Lahijani - not sure if this is what you are looking for, but all Tracy's settings can be overridden in config.php like: $config->tracy = [ 'outputMode' => 'development', 'guestForceDevelopmentLocal' => true, 'forceIsLocal' => true, ]; Not sure if those are the exact options you want, but hopefully that approach works for you.
  1. Load more activity
×
×
  • Create New...