Zeka

Members
  • Content count

    497
  • Joined

  • Last visited

  • Days Won

    4

Zeka last won the day on February 7

Zeka had the most liked content!

Community Reputation

481 Excellent

About Zeka

  • Rank
    Sr. Member
  • Birthday 04/12/1989

Profile Information

  • Gender
    Male
  • Location
    Kiev, Ukraine

Recent Profile Visitors

1,961 profile views
  1. Zeka

    I think you have to unzip it firstly and then add images to your images field $zip = $config->paths->cache . "archive.zip"; $dst = $config->paths->cache . "temp-zip/"; $items = $files->unzip($zip, $dst); $page->of(false); if(count($items)) { foreach($items as $item) { $page->images->add($item); } } $page->save();
  2. https://processwire.com/api/include/
  3. @dragan, @bernhard, @Doug G Thanks for answers. Flushing of DNS records helped and now it works with $config->sessionFingerprint = 2; As for .localhost - I have chosen it as it was reserved for local testing and dev scenarios. Is there better domain name for local development?
  4. Zeka

    http://mcdonalds.az/
  5. I have moved my local development domain from .local to .localhost and after this, I'm logged out from admin every time I visit the front of the site. I have tested it on several installations. On .local domain I've used ' $config->sessionFingerprint = 2; '. But on .localhost I have to change it to ' $config->sessionFingerprint = 0;' to solve the issue, but I can't understand why it worked on .local domain, but doesn't on .locahost. Do you have any idea what can cause it? Thanks, Eugene.
  6. @lenoir Have you updated names of your homepage?
  7. Zeka

    I'm not sure at all that this is relative to your case, but I have seen that this setting has some notes about AWS https://github.com/processwire/processwire/blob/master/wire/config.php#L256
  8. Zeka

    $your_field->label = ''; //first need to set field label as empty string (important!) $your_field->skipLabel = true; //works only if the label is set to empty string
  9. Zeka

    @dadish While installing the module I get require_once(): Failed opening required ' ... modules/ProcessGraphQL/vendor/autoload.php' There is no 'vendor' folder on the master branch, but it exists on dev branch. Am I missing something?
  10. Zeka

    https://processwire.com/apigen/class-Exception.html#___construct Example https://github.com/processwire/processwire/blob/48fe0769a4eb3d0f5b4732fd01b4b4ed8262d952/wire/core/Fields.php#L165
  11. Hi @Soma. Thank you for your answer. I still have the issue that this code doesn't find the page with non-default language if(input()->urlSegment2) throw new Wire404Exception(); if(input()->urlSegment1) { $pagename = input()->urlSegment(1); $language = user('language'); $match = pages()->get("template=blog-category|blog-item, name={$pagename}"); if(!$match->id) throw new Wire404Exception(); echo $match->render(); return $this->halt(); } but this finds if(input()->urlSegment2) throw new Wire404Exception(); if(input()->urlSegment1) { $pagename = input()->urlSegment(1); $language = user('language'); $nameFieldSelector = $language->isDefault() ? "name" : "name" . $language; $match = pages()->get("template=blog-category|blog-item, $nameFieldSelector={$pagename}"); if(!$match->id) throw new Wire404Exception(); echo $match->render(); return $this->halt(); } Do you have any idea what could be the reason?
  12. Zeka

    Hi @rolisx sort=-date, sort=title http://processwire.com/api/selectors/#sort
  13. @digitex Are you sure that you don't have space character before H and W letters?
  14. @PWaddict I don't think that modifying the core is a good way. Changing this behavior should be available via settings or maybe hook.