Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


kongondo last won the day on July 7

kongondo had the most liked content!

Community Reputation

7,037 Excellent

About kongondo

Profile Information

  • Gender
    Not Telling
  • Location

Recent Profile Visitors

28,973 profile views
  1. Hi @ryan, I just noticed that part of the documentation for $user variable refer to Page objects instead of User object. Yes, technically, these are pages as well but I think it might confuse new ProcessWire users. In addition, the $user variable docs clear refer to users as 'users' and not 'pages'. Here's an example of what I mean. $users->delete() Here is the list of docs that need amending (that I could find): https://processwire.com/api/ref/users/add/ https://processwire.com/api/ref/users/added/ https://processwire.com/api/ref/users/delete-ready/ https://processwire.com/api/ref/users/deleted/ https://processwire.com/api/ref/users/find/ https://processwire.com/api/ref/users/save/ https://processwire.com/api/ref/users/save-ready/ (some bits are OK). https://processwire.com/api/ref/users/saved/ The get* methods and setCurrentUser() are all OK, referring to User object instead of Page object. The saveReady() refers to User object in some parts but Page object in others. For instance: But further down... Could you please consider amending these? Thanks.
  2. Works fine for me. In ready.php $this->addHookAfter('Session::logoutSuccess', function(HookEvent $event) { $user = $event->arguments(0); // here, your condition for getting transitory user if($user->id>1025){ // just to confirm wire('log')->save('logged_out',$user->name); // delete the user wire('users')->delete($user); } }); ProcessWire 3.0.159
  3. Which one? ProFields Table? If yes, definitely; Ryan's the author πŸ™‚ (although I am not sure what you mean exactly by proper use of the API).
  4. Hello @ivineet9, Welcome to the forums πŸ™‚. Most likely using a RESTFUL API or multi-instance ProcessWire if both sites are on the same file system. Mind, these will only get you as far as the data. If you want to 'see' the admin of the other site in the backend site, you will need to develop a Process Module. There are a couple of threads in the forums that discuss how the admin panel can be locked down to 'mimick' not accessible (redirects after login, hard-to-guess-admin-url, ProcessWire outside webroot, etc) but you cannot fully get away from an admin (unless I have missed new a trick or two).
  5. Just to add to the discussion....how Laravel does it: https://laravel.com/docs/7.x/events
  6. The more I read this the more it sounds like what you are after are custom hooks?
  7. I am curious about this as well Was it Joomla? Why did you decide to stop using Joomla? Why ProcessWire?
  8. In that case, what @teppo said should do it (according to the docs in its support board): $pages->find("books.category=something, books.text=$letter");
  9. Glad you find it useful πŸ˜„ Yes, thanks! This has been reported before but I've not yet had time to commit to the repo. Here's the previous post with the recommended fix πŸ˜„
  10. Hmm. I've never tried this but I am curious ProcessWire didn't complain about a custom field called 'name'. I would've thought that is a reserved word since ProcessWire pages field has a name column. Do you mean Select Options field (fieldtype)?
  11. Great! Glad you got it sorted. Please explain what this means πŸ˜„ Zero? Wrong results? I'll try and replicate when I get a bit of time. Could you please clarify the field types in your selector? What is category and text?
  12. Please explain, what is unusual? You have a data that is structured in an unusual manner or you think ProcessWire's database structure is unusual? If the latter, then many here will beg to differ πŸ˜„ Do you mean a page or module where you can view a page's data in this manner? Like in a spreadsheet? Or, do you mean a database that resembles a spreadsheet in its structure? If the latter, that's akin to a flat file database. ProcessWire uses a relational database. This model is not unusual at all :-). I don't understand this bit. What is the dilemna?
  13. Your topic says 'pipe selector not working' There are two different uses of pipe selectors in your sample code. template=article|blog_post|book - OR selectors: matching one value or another (docs) title|body|author*=$q - OR selectors, matching one field or another (docs) Which one isn't working? Are you not getting any results or is it returning unwanted results? Are you sure it is not the AND selectors (docs) that are 'interfering'? Perhaps you want OR:groups (docs)?
  14. Of course, you are right. I should have read the requirements more carefully :-).
  15. This assumes only one field of type FieltypePageTableExtendedGrid is present on the page, no? πŸ˜„
  • Create New...