Jump to content

horst

PW-Moderators
  • Posts

    4,088
  • Joined

  • Last visited

  • Days Won

    88

Everything posted by horst

  1. Hi @bernhard, that's a possible solution: adding a hidden field to that template and on saveReady concatenate all four field values into it. (Thats exactly what fieldtype concatenate does, if I rememeber correct). So, it sounds a bit quick & dirty, but then I can present one input field in the filter tab and show in the results the original single fields. Thanks!
  2. Hi, is it possible to setup the lister / listerpro to have some fields in OR condition for the same value, without to enter the value multiple times? I want give the user the ability to input one value and as result, get the pages where this value is present in one of four columns. Is this possible? Also the default value should be blank on start of the lister(pro). As pages selector it would look like: $pages->find("template=mytemplate, field1|field2|field3=someValue"); A user should be able to write in one value in one place and the lister should return all pages that have this value in one of multiple fields. Is this possible?
  3. @ryan here is a screenshot with barlow font. Looking good here, (not best but good!) https://biriba.de/pw_pop3/Screenshot_2019-01-08.png Regarding webP, we have had discussions in the forums and at github, plus I have built it into GD already for basic usage. With the current version here, you can add an additional param with the images calls to additionally create a webP image besides the requested variation. With two hooks I'm already using it in test sites: hasWebp and urlWebp. In my markup generation for picture elements (or srcset), if hasWebp is true, I generate alternative webP image src for browsers that do support it. The other cool thing (what I not have tried yet, but should become my favourite usage) is to use it with the lazyload class, that already includes checking for webP alternatives via JS, when enabled. So the only thing to do is to create the webP format besides the requested image. I had planned to finish this during the holidays, but then got two jobs with one deadline 29.12.18 and the other has to be finished this tomorrow. (uff) Here are the links to the discussions: https://github.com/processwire/processwire-requests/issues/1#issuecomment-443164642 https://processwire.com/talk/topic/14236-webp-support/?tab=comments#comment-176944 https://processwire.com/talk/topic/14236-webp-support/?tab=comments#comment-177630
  4. To sum up my favourites: the look and feel of the screen presentation @3fingers linked to, but as a automatic slider with maybe 3 slides, in high image quality without artefacts as picture or srcset elements with webP alternatives. ? Ps: speaking about the screenshot on the entrypage.
  5. We have the wiremail class. Is this supported too? Im asking, because there already exist some modules to use different services, what would be cool if this can be used with your mailer app too. (If one need another service, just switching one module and its done)
  6. Implementing a basic support for additional webP format in PW is just around the corner, (when I next get time to do the implementation in IMagick. In GD is already working.) ?
  7. Oh, work is also rendering very sharp and clear here!! ?
  8. @ryan Regarding the fonts rendering. There are three out of 25 that also look ugly on my machine and FF64: sarabun, lato, titillium. But not at such a high scale ugly compared to the initial font. And five out of the above font list renders very sharp and clear: rubik, nunito, ibm, roboto and open sans, of course. Hope that helps a bit.
  9. github clrux a11y-toolbar maybe? or this link: https://github.com/downzer0/a11y-toolbar
  10. I will look more closely into it later, as I have a bit pressure atm. In the current project there only is one template in use for csv export and I haven't tested further. Only unchecked other templates for that user in the roles access tab.
  11. If I'm not totally wrong, Pageimage->size (->width, ->height) checks if the image-variation is available, and / or if there are options present that force a recreation. The creation of variations is done in image rendering engines, that will be started from PageImage->size only if there is no variation available, or if it needs to be recreated, (forced by global or individual options). There must be a flag availabe for pageimages called something like isModified. Maybe this can help? If you need further support on PageImage and getting out informations or tweak its behave to suite your needs, please tell me and I will dig into it. ?
  12. @ryan, the site is beautyful in so many details! I directly fallen in love with those little wire-loops and plugs etc. ? ! I will have some more in depth looks next week, as I have to work this weekend. Only one thing I want to show you know: Unfortunately the fonts render very bad on my machine, win7 firefox 64. I'm aware that it do not render that bad on all win7 machines, but I'm also not aware of any special settings regarding fonts rendering on my machine. I setup my system completly new from scratch last year, and I left the most things by default settings where applicable, (to reduce time with the setup, as I have to change in 2019). There are, maybe 15% webfonts in websites that behaves like this one too. (?) A 1:1 PNG screenshot is uploaded here, so that it doesn't get rendered through a forums image engine. Please look at it in 100% scale. https://biriba.de/pw_pop3/new-pw-site---fonts-rendering-ugly-win7-ff64.png
  13. Thanks @Robin S, now, after enabling a globally template edit permission for the role, I have the action displayed in the lister and can execute it with this roles users. And now, I can revoke it for all other templates but the one I want it to have, and its working too. <confused>Why isn't it working the other way round: don't add globally edit permission on all templates, but only the one I want it to have?</confused>
  14. Hi, I have a setup where a user role has permissions to edit, create, delete, (and add on the parent) as it has permissions to use the lister(s). I installed page-action-export-csv and gave this permission to a template that is also used in a lister. Now, when I view the lister page with that role, I don't have access to this action. ?? In the Access Tab for that role, this permission is not displayed for selection. What is wrong with my setup? Additionally: Simply trying to add this page-action-export-csv-permission to that role via CLI seems not to work, as it is removed automatically on next page load. Or is my code wrong for that? $permission = $permissions->get('page-action-export-csv'); $role = $roles->get('myrole'); $role->addPermission($permission);
  15. Moderator comment: Please do not open new threads for the exact same topic. It is perfectly fine to post to the already existing thread: https://processwire.com/talk/topic/19420-how-to-allow-guests-to-access-protected-pages-assets-just-for-some-occasions/?tab=comments#comment-168548 This new thread is closed now.
  16. read more here: http://ocramius.github.io/blog/fast-php-object-to-array-conversion/
  17. https://stackoverflow.com/questions/10631767/converting-array-and-objects-in-array-to-pure-array or: https://duckduckgo.com/?q=php+object+to+array+conversion&amp;t=ffab&amp;ia=web ?
  18. this one from here: https://processwire.com/talk/topic/11355-large-b2b-website-goes-processwire/?tab=comments#comment-105946
  19. (taken from https://processwire.com/talk/topic/7494-case-study-the-triumph-of-national-geographic-traveller-india-in-processwire/) More can be seen here: https://www.fixmy.pw/blog/why-we-love-processwire-cms-so-much-especially-after-working-with-crappy-joomla-wordpress-and-drupal-cmss/, starting at "For Developers, it's a welcome dream." ?
  20. Hmmm, there is a new action for PageListerPro (https://processwire.com/blog/posts/processwire-3.0.121-core-updates-and-more/).
  21. Yes! It's just for testing right now.
  22. What exactly is / was the issue? Are the thumbs variation files missing or residing corrupted in the filesystem?
  23. I'm on win7 and use different PW and different PHP versions in parallel, by switching symlinks. I create individual site folders for each project, regardless if it is a client site or a module. Then I copy shell scripts of the desired PW versions into the webroot folder of the project, and by executing one, it creates me a wire folder, symlinked to the desired PW version. This way, I can switch between different PW versions with one or two clicks. To test with different PHP versions is possible with executing shellscripts of my allday editor NoteTabPro. It shutdown the running apache service, symlinks the apache main directory with one that suports the desired PHP version and starts the service again.
  24. With a hook in site/ready.php like this one, // hook for pageimages to return a webp url $wire->addHookProperty('Pageimage::urlWebp', function($event) { $image = $event->object; $path_parts = pathinfo($image->filename); $webpFilename = $path_parts['dirname'] . '/' . $path_parts['filename'] . '.webp'; if(!is_readable($webpFilename)) { $event->return = '#'; // what should be returned for none existing webp variations ? return; } $path_parts = pathinfo($image->url); $webpUrl = $path_parts['dirname'] . '/' . $path_parts['filename'] . '.webp'; $event->return = $webpUrl; }); you can use it for testing purposes right now.
  25. That's the part that is bound to the Pageimage class. Maybe it could be takled by a little extra layer / function, that maps a new configuration API to the old cryptic one, as I do with PIA and her selector strings?
×
×
  • Create New...