Jump to content

elabx

Members
  • Posts

    1,479
  • Joined

  • Last visited

  • Days Won

    21

Everything posted by elabx

  1. I'm also very interested in the backend part and all the security implications it might have, though being absolutely sincere I'm not seeing myself using Delphi. Thanks for your interest in sharing!
  2. I think this should work?? https://github.com/processwire/processwire/blob/51629cdd5f381d3881133baf83e1bd2d9306f867/wire/modules/Process/ProcessModule/ProcessModule.module#L315 $compiler = new FileCompiler($this->wire('config')->paths->siteModules); $compiler->clearCache(true);
  3. I had once considered vanilla forums since I tested their very embedding which seemed pretty straightforward. https://success.vanillaforums.com/kb/articles/67-embedding-your-forum
  4. All of this seems pretty doable. ProcessWire has a built-in access control system that is REALLY powerful. For example, you could have "content editor" roles doing the articles only, and "financial editors" roles for people that can edit loan information or view potential client loan requests. (Just throwing ideas here) Each loan type could be a page with the required template/fields to define the loans. Again, a page with a template with the required fields should be enough. Save forms to pages, and show them on a ListerPro! Doable with some Process modules (basically a way to make custom dashboards in processwire, it's a bliss and almost the same as doing any frontend work), could be as simple or complex as you want. What would probably require more though on how you show/process data is with the loans themselves, what I would do is, have a page that holds the loan information, and pages that are child of it as "transactions" that affect the loan statuses, every time a transaction is saved, calculations could be done on the loan page holding the main data. For example, to update a field that shows how much is in debt or already paid.
  5. As an alternative so you don't have to use an extra field, you could also use the $cache API to save the counts, and to avoid the count on first load, calculate all counts when a page of template news or exhibition is saved through a hook. And if you really really want to make sure a guest user never hit the cache rebuild call you could use a cron job to rebuild the cache behind the scenes.
  6. From the looks of the source, at least Profields table doesn't seem to be very hookable at that detail (it's creating the markup concatenating strings), you could only hook on the inputfield render method and that includes the whole markup for the table field. I'd try with some custom javascript. Textareas does seem to trigger the Inputfield render method, so I'd give it a shot with @bernhard's hook.
  7. Have you tried ProCache?? Depending on the type of website (is it mostly viewes by guests?) could work wonders because it sets up Apache to grab cache files from the system instead of hitting the database (thus saving that connection). That seems to be the database user ProcessWire uses to make it's queries. And sorry but I've got no recommendations for any european servers, way out of my geography :D I do remember seeing some forum threads about hosting solutions, try to search for that here on the forums.
  8. @Ovolion I use Shopify 101% of the times, it just has most of what you need out of the box.
  9. The link I've been needing all my life thanks!
  10. Try: https://processwire.com/api/ref/page/get-field/ $page->getField('Formattext01')->id
  11. Here I had thought you wanted the actual PHP code inside the function! lol
  12. ohhhhh got it! no idea man hahaha
  13. Hi @Joss !! What are you having trouble with? Most of the time I forget to call ProcessWire variables like this inside custom functions: $hanna = wire('modules')->get('TextformatterHannaCode')
  14. Does anyone know if there is a way to do this in Firefox?
  15. This looks like a reasonable approach! There is currently nothing like those tools you mention. What I've seen works for a lot of ProcessWire developers is to use the Repeater Matrix module to create content. Take a look here: https://processwire.com/store/pro-fields/repeater-matrix/
  16. About to purchase it now that I have a new computer because on my old one it just couldn't handle!
  17. Try adding: <?php namespace ProcessWire; ?> To the top of the file where that function is used and defined.
  18. Yes I'd recommend this too!
  19. I think it should be: $page->fixtures->find("team_a=$teamA,team_b=$teamB");
  20. https://processwire.com/docs/fields/dependencies/
  21. This is not possible right now, but it is definitely possible to implement, though I highly doubt Ryan would prioritize this right now, you have a better chance giving it a shot yourself editing the module's code and setting up the role/permissions yourself.
  22. I think this might be the issue, LoginRegister supports starndard fields. At least says so in the description of the "Registration form fields" field, in the module's configuration.
  23. In what context are you trying to output it? Do you mean in a tempalte, after "first login"? Could I see some code?
  24. What have you tried? Have you tried any of these suggestions?
  25. what a great use case of that field!
×
×
  • Create New...