Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by AswinC

  1. @ryan, Can you have a look at this, and point us into the direction how to get this into pw3 / pw4 ? Being supported /maintained by the community. Basically an auto install by providing a preconfig or .env variables.
  2. Hello everyone, As a community that frequently installs ProcessWire, we understand the importance of efficiency and security in our workflows. We’ve been contemplating the idea of leveraging auto-deploy scripts to streamline our installations, especially considering the wide array of web hosting panels available to us. Here’s a rough sketch of how we envision this process: Git clone: The first step would involve cloning the repository. Pre-configuration: Next, we’d place an install_preconfig.php file containing an array of variables that install.php could utilize if available. This file would include pre-configured variables such as dbhost, among others. Auto Install Modules Cleanup. Deleting the pre-config file & installation file. Currently, we’re aware that these variables are fetched using ini_get, which unfortunately poses a security risk. If someone were to launch phpinfo(), our credentials could potentially be exposed. To mitigate this, we propose replacing all variables in the install file with $preconfig['mysqli.default_host'] ?? ini_get("mysqli.default_host"). This way, we prioritize the use of our pre-configured variables, resorting to ini_get only when necessary. We believe this initiative could significantly enhance both the security and efficiency of our ProcessWire installations. However, we understand that this is a community effort. What is the best way to get this initiative hit off? @ryan Kind Regards,
  3. came this post, instead of : $pa = $event->pages->get("id=1354")->children; better todo: hasPage is a reference to the page the field is on. $event->object->hasPage->children():
  4. And how to merge them as a OR ? Found it: $mergedSelectors = new Selectors(); $mergedSelectors->add( '(' . $selector1 . ')' ) ; $mergedSelectors->add( '(' . $selector2 . ')' ); $mergedSelectors->add( '(' . $selector3 . ')' ); will result in 'or grouped' selectors
  5. what about the value in the input field? I've a customer who is persistent about this ?
  6. check with a normal php file and a simple form, if you still have it or not. think about excluding your php file from .htaccess, otherwise it's still processwire you access. so to check if it's the hosting or pw: How to Upload a File in PHP (With Easy Examples) (filestack.com)
  7. Hi Guys, I'm configuring one page as 'alert on' and using a selector field together with a repeator, so the customer can configure alerts by themself. Now when selecting a 'date' field, I would like that the customer can write 'today'. Somehow I was able todo this one time, and I saw in the selector text on bottom right, it said 'today' as well. but now I'm unable todo so, I get always the date picker, and can't write a text such as 'today' in it. So how can I achief this?
  8. I use it in almost every project.
  9. What I would like to do; There is a table with data. In one column the customer must be able to "double click" and alter the data of that 'cell'. That's it. Is there anyway to do this with any of the field types?
  10. Hi all, Is it possible with profields - table to mark some of the columns as readonly? Kind Regards.
  11. Hi all, I'm planning to develop a customerportal in processwire. The idea is basic, like a basic admin pannel. for instance; * viewing your domain names. to protect a page from one user from another, I would have many many roles. role: customerA-viewDNS role: customerA-editDNS role: customerB-viewDNS role: customerB-editDNS if I add something like: licensing O365 & ssl certificates; role: customerA-view-license-O365 role: customerA-view-sslcertificates role: customerB-view-license-O365 role: customerB-view-sslcertificates so the "Power" user of customerA would have all roles who start with customerA It feels like there should be a better approach? how are pages like "my profile" in general done? Kind Regards
  • Create New...