Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

2 Neutral

About daniel_puehringer

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hey, so we all know about SEO and the importance of performance. Basically we do it, because if no one finds the website we just built, it´s frustrating. We all try to write clean markup, css and js code and most might have a webpack/gulp/whatever pipeline to minimize css&js. But when thinking about it, optimizing your pipeline might save you a few (hundreds) of kb, compared to loading an image with 1 mb that´s literally nothing and frankly just ridiculous. Don´t get me wrong, frontend pipelines are great and should be used, but let´s shift your "I will optimize the shit out of that 3 css lines" focus to something different: try to serve images as fast as possible, this is where the performance boost really happens. I´m no pro on processwire so far, but I built a very easy to use picture element, which some of you could find interesting: 1. the picture comes with 3 different sizes: one for mobile (keep in mind the double dpi, therefore width of 828px), one for tablet and one for desktop 2. the picture generates a webp version and the original file extension as a fallback 3. the filesize of each element is rendered within the "data" attribute 4. lazy loading(sooo important!!!) is done via the native 'loading="lazy"' attribute. Please try it out and see the difference 🙂 I posted this so others can easily optimize their images, but I would also like to hear your suggestions in making it better. Maybe you could decrease the rendering time or maybe you have some easy improvements. Please let me know. Greetings from Austria! <picture> <source data="<?php echo($oElement->repeater_image->width(828)->webp->filesize);?>" media="(max-width: 414px)" srcset="<?php echo($oElement->repeater_image->width(828)->webp->url) ?> 2x" type="image/webp"> <source data="<?php echo($oElement->repeater_image->width(828)->filesize) ?>" media="(max-width: 414px)" srcset="<?php echo($oElement->repeater_image->width(828)->url) ?> 2x" type="image/<?php echo($oElement->repeater_image->ext)?>"> <source data="<?php echo($oElement->repeater_image->width(767)->webp->filesize) ?>" media="(min-width: 415) and (max-width: 767px)" srcset="<?php echo($oElement->repeater_image->width(767)->webp->url) ?> 2x" type="image/webp"> <source data="<?php echo($oElement->repeater_image->width(767)->filesize) ?>" media="(min-width: 415) and (max-width: 767px)" srcset="<?php echo($oElement->repeater_image->width(767)->url) ?> 2x" type="image/<?php echo($oElement->repeater_image->ext)?>"> <source data="<?php echo($oElement->repeater_image->webp->filesize) ?>" media="(min-width: 768px)" srcset="<?php echo($oElement->repeater_image->webp->url) ?>" type="image/webp"> <source data="<?php echo($oElement->repeater_image->filesize) ?>" media="(min-width: 768px)" srcset="<?php echo($oElement->repeater_image->url) ?>" type="image/<?php echo($oElement->repeater_image->ext)?>"> <img data="<?php echo($oElement->repeater_image->filesize) ?>" class="img-fluid" loading="lazy" src="<?php echo($oElement->repeater_image->url) ?>" alt="<?php echo($oElement->repeater_image->description) ?>" type="image/<?php echo($oElement->repeater_image->ext)?>"> </picture>
  2. Hi Fruid, my .htaccess file is attached. Search for the lines #the 2options underneath throws the 500error #Options +FollowSymLinks #Options +SymLinksifOwnerMatch Greetings, Daniel .htaccess
  3. Hi community, thanks for the great work you do 🙂 I´m looking for a global field which can be used in the footer and has only one instance for all pages. So I´m kind of looking for "One field to rule them all". Reason for my question: The website I´m currently building has one footer for all pages. The content of the footer should be dynamic - therefore I made a global field which is automatically inserted into each page. Problem: if I want to change something in the footer, I have to do it for all fields, because each field has it´s own instance. Question: is it possible to have one global field in which changes the content for the footer of all pages? In most CMS Systems a simple solution to this is often impossible, I hope that processwire is different 🙂 All the best, Daniel
  4. Question: What solutions would you have to navigate to the parent page of a dropdown menu? Hi, thanks for the great tutorial - I tried it out (slightly adjusted it) and it worked very smoothly 🙂 But I do have one question about the dropdown: Imagine you have a site structure like: A B B1 B2 B3 C Then B would be a Dropdown Menu because it has 3 Subpages. If you click on "B", the Dropdown Menu opens and you can navigate to B1, B2 & B3. Problem: How can you navigate to "B"? Can you create a new Subpage of B and make a redirect within processwire like B B1 B2 B3 B4 (--> this page redirects to /B because B only opens the dropdown) I would really appreciate your help, all the best!
  5. Hi Dragan, thanks for the advice: Actually, the rewrite base was not the problem - but the #Options +FollowSymLinks #Options +SymLinksifOwnerMatch was. I found this error by checking the error logs. Now it works fine!
  6. Hi Community, Sadly I cannot intall ProcessWire on my webserver (Hosted at https://www.world4you.com/de/startseite.html, a small hosting provider in Austria) Here is the Problem: 1. I downloaded the current masterbranch as a .zip file (After a few tries I also downloaded the code via the git clone command, that led to the same error), unzipped it and transferred it to my server. Since there is already a wordpress site installed on the root directory, I transferred the processwire files into /relaunch and created a subdomain. 2. I tried to install the language starter kit. As soon as I navigate to that folder Screenshot1 (see attached file 'processWireBug1') is shown. Everything looks nice, except the red text referring to the 'mod_rewrite' rule. The webserver provides the 'apache mod_rewrite' rule. 3. As soon as I want to press 'Check again' or 'Continue to next step' an error Page with 500 error (see Screenshot 'processWireBug2') occurs. 4. You can find my .htaccess file attached to this post..htaccess How could I solve this issue? Some additional information: 1) the webserver provides the apache mod_rewrite (I checked that several times) and has php version 7.3. installed. 2) since there is a wordpress site installed on the root directory, there is also a .htaccess file on the root directory. Could this .htaccess file have an impact on the .htaccess file for my processwire website? Thanks for your help and greetings from Austria, Daniel
  • Create New...