Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Posts posted by 3fingers

  1. Quote

    just to be clear the file is outside the templates folder, root of the website folder.

    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:

    • Like 1
  2. Thanks for all of your responses! 🙏


    Just outlined a few ideas out of my head.

    This is a very valuable feedback from your side. Kudos for all the insights you gave me!


    Good Idea but if it is going to be paid then please only exclusive content, just for example applied api usage
    starting from a certain level such as building forms or applied arrays

    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. 💪

    • Like 3
  3. Hello @szabesz!

    1 hour ago, szabesz said:

    showing how to implement Faceted Search would be invaluable (along with listing products, sortable by categories)

    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. 💬

    1 hour ago, szabesz said:

    looks useful to build upon is InputfieldTextTags

    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! ✌️


    1 hour ago, gebeer said:

    Frontend forms in general would be a good topic.

    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) 😺

    • Like 4
  4. Hey @gebeer, thanks for taking the time to answer 🙂


    Do you mean that others can contribute videos as well?

    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.


    You could use a platform like https://www.codecademy.com/ to publish your courses.

    This could be a solution; I am evaluating different platforms and their pros and cons. Thanks for the suggestion!

    8 hours ago, gebeer said:

    But the basics of where you can place your source files, and how to include assets in template files might be helpful.

    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.

    8 hours ago, gebeer said:

    Go for it and good luck!

    Thank you, I will do my best! 🙏

    • Like 2
  5. 🚨 [[ 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! 🙏

    • Like 17
    • Thanks 1
  6. 2 hours ago, adrian said:

    I ended up doing a file_exists() on the image variation I am wanting to call (built from the returned filename) and if it doesn't exist, then get the full page and call the size on the image. This should only happen once until the reduced size is created and then we're back to being able to load directly from the raw data.

    Hey adrian, can you give us a short code example please? Thanks!

  7. On 10/15/2022 at 11:33 PM, pwired said:

    The thing with Drupal is that you have to work the Drupal system way with it's content types, articles, fields, blocks, entities, nodes and modules.
    With this you can make Drupal Websites without having to write code. Drupal is targeting non coders and with Drupal 9 it has improved
    on it's user-friendly interface for non-technical administrators.

    @pwired Now change "Drupal" with "Wordpress" and it's still remaining a valid sentence. :)

    • Like 2
  8. On 10/16/2022 at 11:21 AM, teppo said:

    they have solid integrations with many development-oriented tools, from Symfony components to Composer, PHPUnit and Nightwatch for testing, etc.

    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🦇

    On 10/16/2022 at 11:21 AM, teppo said:

    Silver lining: sounds like an interesting learning opportunity!

    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.

    On 10/16/2022 at 11:21 AM, teppo said:

    folks have the impressions that Drupal is the go-to system for "enterprise open-source" content management

    Yes, you are right and it's totally nonsense.

    On 10/16/2022 at 11:21 AM, teppo said:

    Perhaps suggest doing some smaller or in-house projects with PW, and see where it goes?

    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.

    On 10/16/2022 at 11:21 AM, teppo said:

    Pushing anything too hard, especially to other developers, has a tendency to backfire 😉

    I know, dammit! :)

    • Like 5
  9. 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.


    • Sad 5
  • Create New...