Jump to content

gs-df

Members
  • Posts

    17
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

gs-df's Achievements

Jr. Member

Jr. Member (3/6)

24

Reputation

  1. config.php /** * Enable demo mode? * * If true, disables save functions in Process modules (admin). * * @var bool * */ $config->demo = false;
  2. I think u can solve it with this module https://processwire.com/modules/custom-inputfield-dependencies/
  3. You can use FieldsetPage to reuse fields on the same page on different sections https://processwire.com/blog/posts/processwire-3.0.73-and-new-fieldset-types/#fieldset-page-fieldtypefieldsetpage
  4. // ready.php $this->addHook('WireLog::save', function(HookEvent $event) { // Prune all log files foreach(wire('log')->getLogs() as $logFile) { wire('log')->prune($logFile['name'], 7); } // Or just the current log file wire('log')->prune($event->arguments[0], 7); }); Not really tested ๐Ÿ˜‰
  5. My idea: cronjob call every day this script. // include index.php from pw foreach($log->getLogs() as $logFile) { $log->prune($logFile['name'], 7); }
  6. https://processwire.com/api/ref/wire-log/prune/
  7. $input->post provides access to your POST variables https://processwire.com/docs/start/variables/input/
  8. I saw differnt ways to handle ajax calls. I use 2. and 3.(for more complex projects) 1. Ajax folder with php files for each request, which include processwire index.php 2. URL-Hooks https://processwire.com/blog/posts/pw-3.0.173/#new-type-of-hook-for-handling-request-urls 3. AppAPI Module https://processwire.com/modules/app-api/ (Uses URL-Hooks or pageNotFound-Hook) 4. ajax.php template file https://github.com/kreativan/wirekit-core/blob/main/site-wirekit-core/templates/ajax.php 5. ajax request logic in each template file
  9. https://processwire.dev/integrate-composer-with-processwire/ maybe this helps you
  10. Hello @kongondo have u any tips for adding the feature voucher/coupon? Which files i have to look into for this feature? Thx for your help ๐Ÿ˜‰
  11. I recommend RockFrontend(for LiveReload) + DDEV: a local web development environment system for PHP
  12. Hi, when i click on "Print(Email) invoice" it shows SQLSTATE[42S02]: Base table or view not found: 1146 Table '*.padloper_download_codes' doesn't exist Any ideas?
  13. https://processwire.com/store/pro-drafts/
ร—
ร—
  • Create New...