maxf5

Members
  • Content Count

    129
  • Joined

  • Last visited

  • Days Won

    1

maxf5 last won the day on November 4 2017

maxf5 had the most liked content!

Community Reputation

120 Excellent

About maxf5

  • Rank
    Sr. Member
  • Birthday January 30

Profile Information

  • Location
    Deutschland
  • Interests
    schalke04, whisky, rock 'n roll

Recent Profile Visitors

959 profile views
  1. maxf5

    You can make it this way, so you don't need two loops and the high res will be first in the array. $available_flavors = $pages->get(1017)->children("sort=-is_high_res_image"); <div class="row"> {% for flavor in available_flavors %} <div class="col-sm d-flex flex-column"> <div class="shishaFlavor align-self-center" style="background-image: url('{{ flavor.shisha_flavor_image.url }}')"> </div> <h3>{{ flavor.title }}</h3> </div> {% endfor %} </div>
  2. maxf5

    echo $results->renderPager(array( 'linkMarkup' => "<a href='{url}#YOURANCHOR'><span>{out}</span></a>" ));
  3. maxf5

    Will all those nice functions ever appear in the Api Reference or just when the dev reaches master? I am more or less afraid of forgetting all the nice features mentioned in the blog.
  4. maxf5

    You can create roles in ProcessWire. For example GuestsA, GuestsB, GuestsC and easily get 'em via Api. // Get them $usersA = $users->find("roles=GuestA"); // Check them if($user->hasRole('GuestA')) Also you can create custom fields inside the user-"pages". So you could create a selectfield which you can set with a hook after registration. $users->find("yourcustomfield=groupA");
  5. maxf5

    try this one: $page->social_activity->sort("-created")->slice(0,10);
  6. Hi guys, this just came into my mind if you have MarkUpCache / TemplateCache enabled. Is there a more elegant way than using a http request? in site/ready.php: <?php namespace ProcessWire; function PreLoadCache(HookEvent $e) { $all = wire()->pages->find("has_parent!=2|1139|1029"); // no admin pages, contact forms, page tables $s=0; $f=0; $fn = ''; $http = new WireHttp(); foreach($all as $a) { $response = $http->get($a->httpUrl); if($response !== false) { $s++; } else { $fn .= $a->title . ", "; $f++; } } wire()->log()->save('croncaching', 'Cached: '. $s .' Pages, Failed at '. $f .' Pages: '. $fn .''); } wire()->addHook('LazyCron::every12Hours', null, 'PreLoadCache');
  7. maxf5

    There is a stand-alone Zend application made only for all the drivers and documents. I just connect to the database and get the informations with a few queries.
  8. maxf5

    @Robin S thanks for the hint, i just fixed it. you live and learn ; )
  9. maxf5

    New website for Nexoc GmbH in Munich, Germany. NEXOC. GmbH was founded in August 2003 and sells notebooks and PCs under the NEXOC brand name. The products are characterised by a particularly beautiful design and high quality and are available at an attractive price-performance ratio. We spell Individuality with a capital I! Each notebook and each PC from NEXOC. can be individually configured and designed in line with customer wishes and requirements - there is no challenge - there are only solutions, and these are what NEXOC. offers! Features: Multilingual Page-Builder done with PageTable Download Center: getting the informations from the database of an external application, caching the resultes with WireCache and show the results via Ajax frontend login for reseller Frontend: uikit3 OwlCarousel2 SpriteSpin jQuery Lazy grunt-sass grunt-contrib-uglify grunt-contrib-cssmin Backend: Jumplinks Upgrades Checker Simple Contact Form Schedule Pages Pages2Pdf Email Obfuscation Range Slider Image Extra Sitemap Tracy Debugger PageTable Extra Actions Some "behind the scenes":
  10. maxf5

    Why don't you just crop the thumbs with something like $image->size(320,240,$options)->url, so they 're all equal.
  11. maxf5

    I think we should keep on 3.0.100 for a while on focus on the PW website
  12. Doesn't it work when he prefix his file with: <?php namespace ProcessWire;
  13. Hm it's strange. Can you try this? $frz = $languages->get("fr"); $p->of(false); $p->summary->setLanguageValue($frz, $row['description_fr']); $p->save();
  14. Your code snippet is inside a foreach, right? You have to save the Page at the end. $p->save();
  15. maxf5

    I am using the module on various multilingual sites and it's working fine! When you have Jumplinks installed it sometimes hits an 404 on /sitemap.xml even though the link/sitemap is working. Do you have to create an extra page and template (xml header) for it?