Jump to content

Ivan Gretsky

Members
  • Posts

    1,459
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by Ivan Gretsky

  1. Just to give you another option. Check out this module by @ryan himself. I did not find it in the modules directory. And it did not receive much attention from the author in a while. But it did the job when I used it (a few years ago ?) . As far as I remember it stores custom data written in site/config.php. And it is manageable from admin without the need to create pages.
  2. Oh gosh! It's so relieving to know mine is still in pretty good shape comparing to you guys. It is still new and shining (when looking from some angles). The only thing with it really is that my then 2-year old managed to take off the up arrow key. I do not know how can a little kid make something totally disappear in just a few seconds. He did not eat it (at least nothing came out). I searched everywhere, found quite a lot of useful stuff, but not the key. So I moved F10 as a substitute as it is obviously much less critical one. A few little tips for someone in the very same situation: Use Esc+0 to quit Midnight commander. Use a pencil to save bios configs. Never worry 'bout anything else!
  3. Hey, @Macaco! This very question has been asked a trillion of times on the forums. And here is the way to find the answers already given: go here and search. The forum search does not work well. The closest to what you desire is probably the Duplicator module, but I never used it in production. I suggest you make yourself comfortable with moving you site here and there "with bare hands" anyway. It is not that hard. You just need to: Copy files. Backup database and restore it where you want the site to be moved to (probably some local dev env like xampp or laragon). Adjust site/config.php (or better use config-dev.php - look here at the very botoom). There is a lot to it only the 1st time)
  4. ProcessWire is mature enough. But is not a ready-made solution for this niche, like the names you mentioned. I have made a system quite similar to what you've described here. But it was a lot of work. And it was made with PW to support dealing with objects already in PW. So I would support @wbmnfktr here. If you got time budget and the skills (or want to aquire them), and you know you will use ProcessWire for some things not available out of the box in the ready-made solutions, than go for it using PW. If not and you just need a quick turnover, use one of a plethora of ready made stuff. Just test it out out before making a final decision.
  5. I use WSL all the time, but my local server is still on Windows. It used to be XAMPP, but now I move to Laragon. One of the beauties of Laragon is that you can easilly swith PHP, Apache, MySQL and everything else versions almost instantly. As far as I know from my attempts to set everything up on Linuх, it is not that that easy there (though, surely, possible). I have not found any configuration for Linux that would be nearly that easy. Docker based Laradock was the closest, but it still required some additional docker skills, was not as fast and more complicated. And docker sucks badly on WSL)))
  6. Hey, @alanxptm! I am just guessing, but maybe you got your description filled only in one language, but output the value of some other (probably default) language. And it is blank.
  7. Probably nothing to do with the ProcessWire core. Maybe you are setting/configuring sesssions in your own code not with the API, but with plain PHP and that causes the warnings?
  8. Hey, @JeevanisM! Seems to be the same question as here. Please be patient and do not doublepost. That would probably do more harm than good (to receive a nice and thorough answer).
  9. Hey, @JeevanisM! You use an Integer Field for the phone number. Maybe that field cannot store such a big number as 9446196667? Test it with a 123 to check. I guess you should store a phone number in some other field any way. Text would be ok (with some frontend and server validation). There are dedicated fields for this as well like this one.
  10. I guess you are referring to this. As far as I can tell from the Wikipedia article, there are different implementations of this and you probably need to be more specific about the one you need to use. Anyway I never heard of a ready-made ProcessWire module for this or a tutorial how to implement it. If there is some library that can be used out of the box, it is probably not so hard to do. I can imagine that Ryan could implement it for his FormBuilder as a paid add-on. I think it make sense to advise this route, because I've found JotForm have already done this and are offering widgets for their form builder. But that requires you to have some budget.
  11. I think it can. You need to install the extension on the remote to make it work.
  12. Super cool gallery, @MadeMyDay! Just like for @ottogal, that article about PW over MODX convinced me to try ProcessWire seriously. In those times there were not really much meaningful stuff about PW on the web, so we are probably not the only 2)) You made our yesterday too) Would love to see/read more from you here on the forums! P.S. What about that "rant against Joomla"? Where can we find it?
  13. Hey, @ngrmm! Check out this module by @Martijn Geerts. The description says it has css inliner built in.
  14. Thanks, @johndoe! The conversion did not work on my local xampp with some php 5.6, but did work on a live server. I can guess some requirements are not met on localhost. It would be nice to know those requirements, bit for now I know that I should try to keep the server environment as fresh as possible (which is a good thing anyway)))
  15. This one is converted to webp with black background by GD on my localhost. I tried another one it behaves the same way. Is there any requirements on GD version or php?
  16. A lot of (even shared) hosting providers nowadays use nginx for static. And you may have no control over which extensions they include. So renaming to .php could be more secure than doing .htaccess restrictions in some cases.
  17. Thanks @bernhard! I did try about the same tricks to make it work and ended up just doing exit(0);
  18. Yes, that is what I need to do. But in a function, where $this (which contains current template) is out of scope.
  19. Good evening (at least in my part of the world)! Is there a way to call halt() method from within a function in a template file?
  20. Yep) There is a link to process module that is broken "by default" if the process module is not installed. And I would guess most of the time users would expect an admin page to be in place after installation for such a module. Maybe reconsider and make it auto installed?
  21. Maybe not the direct answer to your question, but You can easilly enable/disable Tracy in config dependant on your $config->debug setting.
  22. Maybe edit the 1st post of this thread too?
  23. Thanks for your answers and for you generously shared work, @teppo! I really like your Wireframe idea - a well-established and documented way to structure code in ProcessWire MVC way. So one could follow rules that are thought out and described. I understand quite well that in order for this to work one should give up some of his own preferences) Will be looking forward to next additions to the project we've been talking about here.
  24. I can relate to that. But the thing is I often do not do my html/css/js myself and pretty often people with very little knowledge of php are to make minor changes to view code. That's why I try to have my markup as close to raw html as possible. And render functions are clearly the opposite. A am with you here. Entities should not be multiplied without necessity)) And that's why I do not quite like the placeholder thing. I think it should be that generic call for controller and view. And in this specific case sidebar usually is not tied to a particular template. So this thing seems "too opinionated" for me) I even think that the whole layout thing can be moved to view folder. I now think it is more clear to keep all the view related stuff in one place (though i did use dedicated layout folder in the past - now it is inside the view folder in my recent projects).
  25. As MVC is about separation of concerns, as you said a number of times yourself, @teppo, I think render functions are not so good here. Because a html/css is mixed too much with php. Logic and presentation together again) I was talking about something like described here, with dedicated controller and view. I looked through recent projects for examples of those partials. These are common ones: menus; breadcrumbs; sidebar; repeating forms (any repeating elements really, anything like wordpress widgets / joomla modules).
×
×
  • Create New...