Jump to content

3fingers

Members
  • Posts

    437
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by 3fingers

  1. Hey @bernhard, the "disable tracy" button in the debug bar is invoking a js method "disableTracy()" which does this: function disableTracy() { document.cookie = "tracyDisabled=1; expires=0; path=/"; location.reload(); } Maybe you can then, in your hook url, use the WireHttp:setCookie() method and do the same as above? Let me know :)
  2. The root of the site is one more level up from that location though..... Usually when I need to pass some php var to js I do this: $jsconfig = array( 'subscribe' => $urls->root . "myPhpFile.php" // the key "subscribe" can be whatever you want of course. // it points to the root of the site, close to "site" folder, one level up the "template" folder. ); echo "<script>var pwUrls = " . json_encode($jsconfig) . ";</script>"; ?> Then in js I reference that var like this: pwUrls.subscribe
  3. I usually use this (or similar) extensions when I use Mobile Detect while developing. Switching the user agent to mobile and not having to reload manually the page every time. Then revert back when done.
  4. Even easy with this module: https://processwire.com/modules/fieldtype-select-ext-option/ ✌️
  5. Hey Jonathan, I think this post should get you started: https://processwire.com/talk/topic/735-session-time-for-logged-in-user/?do=findComment&comment=6173
  6. Thanks for all of your responses! 🙏 @wbmnfktr This is a very valuable feedback from your side. Kudos for all the insights you gave me! @pwired As I mentioned at the beginning of the post, my course will be for the benefit of those beginning and/or intermediate developers. So I think the sweetspot will be to not leave out the basic aspects of approaching processwire but at the same time focus on somewhat more advanced aspects, such as the ones you suggested, which seem to me to be excellent and absolutely doable. So, let's try to get serious here: I prepared a small landing page to validate how many of you would be willing to take the course, so that we would have a rough estimate of how many people would be willing to take the course. 🔗 Show me your interest here 🔗 It goes without saying that if, a month or so from now, I see a small number of consents perhaps I will understand that it will not be the case to proceed further. In any case, go visit the page and leave me your contact information (it is mentioned on the page but I would like to reiterate: none of your contact information will be retained by me, each e-mail is salted and hashed and handled securely by the newsletter service I have hooked up -- Mailjet in this case). Let me know what you think, let's keep comparing ideas. 💪
  7. Hello @szabesz! I recently implemented this feature for a project done for a client, and I am very pleased with the result. Unlike how Ryan did it for the Skyscrapers profile I used ajax (through js's native fetch() functionality) to communicate with the filtering logic. It works very well and is very versatile. It will definitely be a topic of discussion. 💬 Why not? It is one of several alternatives and/or combinations for categorizing data along with Page Referece Fields (they can also be used together). I will take this into consideration! ✌️ @gebeer It is indeed and it's going to be treated with proper attention 🙂 ...and yes, I'm using some Emoji's to grab your attention too (I usually don't) 😺
  8. Hey @gebeer, thanks for taking the time to answer 🙂 I realize that I did not explain myself correctly in fact. I'd like to teach how to create a medium-complex site like the one for an online magazine might be, because I think it could cover a variety of aspects that would be useful for many other projects, even of a different nature. This could be a solution; I am evaluating different platforms and their pros and cons. Thanks for the suggestion! Certainly they will be topics covered in detail. So in your opinion it would be better if all the design part of the page components were already in place and later implemented through the different strategies available. This could easily be one way to go without any problems, I would also like to have other opinions to consolidate, or not, this idea. Thank you, I will do my best! 🙏
  9. 🚨 [[ UPDATE December 6, 2022 ]] 🚨 I prepared a small landing page to validate how many of you would be willing to take the course, so that we would have a rough estimate of how many people would be willing to take the course. 🔗 Show me your interest here 🔗 ------------------------------------------------------- Hello to the entire wonderful Processwire community! I am here to announce my willingness to create a video course for beginner/mid-level developers interested in learning more about the main aspects of our beloved CMS. I have been working with Processwire continuously for years now, so I feel confident that I can share what I have learned to other developers interested in becoming faster and more efficient in their day-to-day work. I have noticed that lately many people here in the forum have complained about a lack of material and tutorials for taking the first steps, and although so many resources are already present within the board, I understand how complicated it can be to be able to connect the dots and have a clear reference on how to get started or how to find clear answers in a short time. As you know Processwire is a very broad tool, very flexible and able to be adapted to any need, so it will not be possible to dissect every aspect in this course, especially the more advanced ones that can help in rarer cases (at least in my personal experience). 🎉 But don't worry, I plan to explain with many practical examples many tips and tricks that can help you in developing sites, even particularly structured ones! 🎉 So I am here to test your interest and ask you what aspects you would be most interested in me covering, even those related to design (css, scss, postcss, tailwind) or javascript libraries/frameworks integrations (vue, alpine.js, greensock for animations,etc.). My idea would be to create together a magazine with a restricted area for users, newsletter integration, catalog filtering according to different parameters (year, author, topics, etc.) and much more.💣 It will be a paid course, I have not yet decided what the price will be, but it will be affordable for everyone 👍. For a small period of time, I would be pleased if you would give me pointers and ideas, so I can see what your real interest is (if any!) and also motivate me 🙂 Let me know! Thanks! 🙏
  10. Hello @sodesign, may I ask you why you need that kind of functionality?
  11. Hey adrian, can you give us a short code example please? Thanks!
  12. Actually that text is located inside the <head> of your page, but the browser moves it in the first line of the body since it's an unknown piece of nothing. Take a look at your source code there and try to find something related then...
  13. I think I would go with - raster - image masks, like mentioned here: https://css-tricks.com/almanac/properties/m/mask-size/ Nowadays the support is very good and it covers the problems you are facing.
  14. Just wanted to share what I've just found: https://get-deck.com/ It looks like a nice Docker environment with a simple GUI and lots of options. I'll try it for the next projects.
  15. Hi @bernhard, as far as I can tell inside the folder is also present the compiled .css file : Is there something I could do or I am missing something?
  16. A combination of this module and the right selector: $user->hasRole($role) should do the trick ;)
  17. Thanks @szabesz, I followed that thread long time ago, there are some very good points I can bring to the table eventually.
  18. @pwired Now change "Drupal" with "Wordpress" and it's still remaining a valid sentence. :)
  19. Drupal is built on top of Symfony, nothing bad about that and also Composer (which I use regurally in Processwire too). PHPUnit and Nightwatch: those two obscure strangers to me🦇 I've been always keen to learn new technologies, as long as they had something I feel better from the ones I knew at the time and...let me say, Drupal is not even close to an improvement in any way for my tastes. Just a couple of further toughts after some more time spent on it: 1) You have to clear the cache every time (EVERY TIME) you change something to your twig template files. Added a variable? Flush that cache. Added a new file? Flush that cache. Imported something? No problem, but flush that damn cache. You can do it installing a CLI module (Drush) and type a string to do so but....come on.... 2) There is no concept of a Blank Site Profile (like my loved PW goto profile). Every site has to have a theme, and 99% of the time it has to extend from another one whom has tens of twig files (that MUST follow a strict naming convention based on regions, blocks and whatnot) to copy from. It's not my way to develop, never was. Yes, you are right and it's totally nonsense. I'm working on it. There is one site (a digital report) for a mid/large company I've made some time ago (http://novacoop.info) that has to be updated every year with new content and design. I will push to not change stack and do my best to expose PW potential then. I know, dammit! :)
  20. As 1st of november the company I work for is going to be integrated into an another, bigger, one where Drupal is the main web driver other developers work with. This is something I have to adapt with, due to the fact that I'm the only one I know, and love, to work with Processwire for web development. I have plans to diffuse my knowledge with PW and convince to use it for all the sites we are going to develop, but right now I'm not very confident to be successful in the short/mid term. I've spent the last two days trying to figure out the mechanisms and the paradigms behind Drupal but the more I discover the sadder I get. Concepts likes regions, blocks and content types don't sound that bad, but bad and alien is their way to act together. Way more intricate and anti-logic as I'm used with PW, where its logic when working with data arises and shines. Moreover there are template files naming convensions, which you must stick with in order to build site pages and pay a good amount of attention to not reach to an "inception-like" structure, an announced mess. There is twig as template engine, which I don't know (yet) but that's the easy part I'm not worried about. Oh...and the design and UX of the backend sucks, IMHO. So, after this good amount of complaining I'm here to ask if some of you with previous experience with Drupal could give me some advices on how to grasp the basics and learn a workflow as similiar as PW can offer. Links, tutorials, modules and whatnot are very welcome from you (virtual hugs too 🙂 ) Thanks in advice. Lorenzo
  21. Never used that CRM before, but looking briefly at the Zoho docs I've found something you could take as a starting point, maybe? https://www.zoho.com/crm/developer/docs/php-sdk/v2/user-samples.html?src=add_user
  22. @bernhard, what can I say? A new star in born! ? Excellent video! For future reference I link here a post where you already explained the use of custom classes (with a slightly different approach for exposing the init() method inside the class). Btw, I already subscribed to your YouTube channel! Keep going!
×
×
  • Create New...