• Content count

  • Joined

  • Last visited

  • Days Won


Zeka last won the day on February 7

Zeka had the most liked content!

Community Reputation

529 Excellent

About Zeka

  • Rank
    Hero Member
  • Birthday 04/12/1989

Profile Information

  • Gender
  • Location
    Kiev, Ukraine

Recent Profile Visitors

2,062 profile views
  1. @NorbertH I'm not using UIkit but as I understand from components list, they have "Notification" component which intended to close automatically. Or you can use JS example from @bernhard
  2. Zeka

    @helmut2509 Also, do you use URL segments or call $page->render() somewhere?
  3. Zeka

    @adrian, @Guy Verville Thanks for your inputs. I tested WireHttp a little today and I must say that it's quite convenient, so I will use it. The beauty of PW, one tool for almost all tasks. $clantag = "test"; $token = "---"; $url = "https://site.com/" . urlencode($clantag); $http = new WireHttp(); $http->setValidateURLOptions([ 'convertEncoded' => false, 'encodeSpace' => true ]); $http->setHeaders([ 'Accept' => "application/json", 'Authorization' => "Bearer " . $token ]); $response = $http->getJSON($url); d($response);
  4. Zeka

    Hi @thetravelwriter I don't think that there any migration tool for static sites, but using an HTML DOM parser and PW API you can easily migrate your data.
  5. I'm planning to start a project where remote API will be involved and thinking about tools to work with API. Of course, we have WireHttp class and actually, I think to go with it, but maybe there are more specialized alternatives that worth to consider?
  6. @Hajosch Looks like something wrong with CSS. Make sure that you load CSS file from comments module and it actually gets loaded and not conflicting with other styles.
  7. Hi. I'm trying to tune my searches, so I'm playing with 'loadOptions' and 'joinFields'. I successfully decrease the amount of PDO queries, buy joining not complex field types. But when I join field types as Images, SelectOptions ( all where multiple values are returned ) and then access them, they contain only the first array value. $products = $pages->find("template=product, (category=$page), (categories=$page), sort=-stock, sort=title, ", ['loadOptions' => [ 'joinFields' => [ 'page_title', 'images', // has multiple values 'labels', // has multiple values 'price', 'unit', 'special_price' ]]]); foreach ($products as $p) { $p->labels <--- contain only first value } Is it normal behavior? If so, can somebody provide some good read about it. Thanks!
  8. Zeka

    Little bit OT. As the former user of Seblod (Cck extension for Joomla) I remember that they have quite flexible storage setting for fields. https://www.seblod.com/resources/manuals/advanced/understanding-the-storage Would be super cool to have some kind of module that can provide such functionality.
  9. Zeka

    By the way there is template context for fields. By default, there are not many options that you can override, but by setting advanced=true you would be able to override all options. https://processwire.com/blog/posts/pw-3.0.87/#new-field-template-context-settings
  10. It worth to mention that there is an option called 'Language Support / Blank Behavior' on'Details' tab in the field config. Maybe it's somehow relative to your case.
  11. Hi. After update to 3.0.109 from 3.0.106 when I try to access DB backup modules page I get Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) PHP 7.2.4 Laragon Does anybody get the same error?
  12. https://processwire.com/api/ref/sanitizer/text/ $sanitizer->text($input->post->message, [ 'maxLength' => 0 // no limit ]); But I think that more suitable method in your case is textarea https://processwire.com/api/ref/sanitizer/textarea/
  13. @tires I'm not sure that there is something built in for your needs in PW, but you can easily create a custom module As the starting point, you can use these example https://github.com/benbalter/Frequency-Analysis/blob/master/frequency-analysis.php