Ivan Gretsky

  • Content Count

  • Joined

  • Last visited

  • Days Won


Ivan Gretsky last won the day on April 18 2018

Ivan Gretsky had the most liked content!

Community Reputation

1,013 Excellent

1 Follower

About Ivan Gretsky

  • Rank
    Hero Member

Profile Information

  • Gender
  • Location

Recent Profile Visitors

6,470 profile views
  1. Ivan Gretsky

    Good day, @kuba2! I am building ProcessWire site locally with xampp. I have a lot of code just like yours and it works fine. There is probably something else, that you did not spot yet. Please post exact error you get and anything else you think could be useful to resolve the issue.
  2. Ivan Gretsky

    I have started a topic in Repeater Matrix closed support board with a request to make it possible to override InputfieldRepeaterMatrix::renderFooter method in a hook. This way we can probably implement any kind of add content type design without css overrides.
  3. Ivan Gretsky

    ProCache can do less compilation. This is what Ryan uses to compile UIKit on the new PW site (he seems to be using sass version, but less is said to be supported as well). Consider buying it to support ProcessWire development.
  4. Ivan Gretsky

    The cheatsheet is missing on the new site. Is it by plan or by accident?
  5. Ivan Gretsky

    Ok, I probably messed up a few times, but to give an idea of how it could be done (not tested, maybe not the fastest nor the most beautiful code): <?php // Get all the blog posts with blog_post_fav and blog_post_favs unchecked $pageArrayToPrepend = $pages->find("template=blog-post, blog_post_fav=0, blog_post_favs=0, blog_post_sticky!=1"); // Add all posts with blog_post_fav checked without the 1st one $pageArrayToPrepend->add($pages->find("template=blog-post, blog_post_fav=1, blog_post_sticky!=1, sort=-blog_date")->slice(1)); // Add all posts with blog_post_favs checked without the 1st two items $pageArrayToPrepend->add($pages->find("template=blog-post, blog_post_favs=1, blog_post_sticky!=1, sort=-blog_date")->slice(2)); // Remove duplicates $pageArrayToPrepend = $pageArrayToPrepend->unique(); // Sort and limit $pageArrayToPrepend->filter("sort=-blog_date, limit=" . $blogSettings->blog_quantity)); // Prepend $cards (is there anything in $cards, maybe this is useless variable?) $cards->prepend($pageArrayToPrepend); $pages->find returns a PageArray which inherits WireArray with a bunch of useful properties. Read here https://processwire.com/api/ref/wire-array/
  6. Ivan Gretsky

    I am tying my best to understand what you are tying to achieve, but still do not understand what you're after. Please explain yourself better. The only thing I can suggest now is maybe not doing it all in one selector... <?php $cards->prepend($pages->find("selector1")); $cards->prepend($pages->find("selector2")); // or a one-liner with a fluent interface $cards->prepend($pages->find("selector1"))->prepend($pages->find("selector2"));
  7. Ivan Gretsky

    So If this topic exists, I think I need to mention a fully open source alternative. It is not as mature yet though. It is an app from the developers of ERPNext.
  8. Ivan Gretsky

    Maybe a good time to write your own module and become famous)) They got lots of ready made classes in their plugins for other systems to start with.
  9. Ivan Gretsky

    Languages are Pages in PW (like almost everything else). A user viewing any page in multilanguage environment has a language property attached (see here). So you can do it like this: <?php if($user->language->name != 'default') { echo 'Hello, multilanguage world!'; } You can use $user->language->id if you want.
  10. Ivan Gretsky

    I have to agree with you @diogo, we probably lost this one. But there are many more of them out there coming in here. So putting a smile on, checking if API reference tab is open and back to the keyboard to complete our mission))
  11. Ivan Gretsky

    Hey @trowtlip! I like the idea of ProcessWire also! First, could you please give a link to the module you used. There are a few of the similar ones.
  12. Ivan Gretsky

    It might be @Nvim is a troll, an AI bot or just someone not polite. We should treat them accordingly as soon as we find that out. But they might as well be someone very new to web development, forum software and even English language. I would presume Nvim innocent for now (after reading his other posts). It is more about our community spirit than about someone else) So until some of you moderators ban him, he is a proper forum citizen, I guess)) Come on @Nvim, give me some likes for defending you (and @BitPoet and everyone else you received some good answers from) by clicking the heart icon in the lower right corner under a post. Prove your good will . Install Codelobster or whatever you choose and try out ProcessWire, the favorite CMS of this forum members and simply put the best one in the world at the time of writing. P.S. Forum search is still broken by design, so more duplicate beginner questions will come)
  13. Ivan Gretsky

    There are plenty of similar topics, you can post (and read!) there. https://processwire.com/talk/topic/3518-what-ide-do-you-utilize/ https://processwire.com/talk/topic/18009-recommended-php-editor-or-ide/ https://processwire.com/talk/topic/17550-visual-studio-code-for-processwire-developers/ ... (use Google based search instead of a built-in one) Do not know nothing 'bout Codelobster. I use VS Code for now.
  14. Ivan Gretsky

    Hey, @jrtderonde! If you have some money to spend, maybe you could approach @dadish and hire him to modify his GraphQL for ProcessWire module to handle Repeaters and Repeater Matrix fields? If you decide to make it open source, this would be an amazing contribution to the community. I also tend to use the RepeaterMatrix as a flexible content builder . Suggesting this because you talking about agency and long term plans.
  15. Ivan Gretsky

    Never done it, but think it should be done like this or something... If there will be a number sites on one server which would require different locales it might be a better solution to set it in config.php for each one though.