Peter Knight

  • Content Count

  • Joined

  • Last visited

  • Days Won


Peter Knight last won the day on May 16 2016

Peter Knight had the most liked content!

Community Reputation

846 Excellent

About Peter Knight

  • Rank
    Hero Member

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    Dublin, Ireland.

Recent Profile Visitors

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

  1. Looks great. Are there plans to also allow multipliers on the front end?
  2. Peter Knight

    Is this image a general image that appears within the main blog content. Or is it the thumbnail image which is used on some overview pages to represent the main thumbnail image of an article/post ?
  3. Peter Knight

    Which mobile framework are you using to build this? Are you using UIKit or Boostrap etc?
  4. Peter Knight

    Hi Michael Wether it’s a blog, or a news page or a product overview page, the fundamentals are the same. 1. This makes most sense and is a well organized structure. I like to create a page called blog. This is the blog homepage or overview listing a small preview of each blog post. In a sub folder under blog I actually store my blog posts in a sub folder called called posts. This is because within my blog folder I also have pages for tags and categories and archives I want to keep them all orderly. You’re probably not at a point where you want tags and categories but it means in future you have the foundations in place. But even if you started out differently and realized you need to re organize everything further down the road, it’s a trivial thing to make your blog work with a different structure and some small changes to your selector in your template 2 you can display a smaller image with css or look at the image api and specify a width or height etc 3 on your blog article template, create a field for each and then pull this info onto any page you wish wether it’s the blog home or the homepage etc 4 you would have 1 blog post template and every page would be based on this template Sorry this is so general with no actual examples but I’m typing on the phone.
  5. Peter Knight

    Solution available in today’s blog post.
  6. Peter Knight

    'Not progressive' apparently. They're large page background images so it's easy to see the difference. The one I did manually is visually smoother.
  7. Peter Knight

    Anyone tried to enable interlacing on their JPGs via the site/config.php? I've tried it on 2 sites now and never seemed to kick in. Cache cleared etc. I'm expecting to see a low-quality blurry JPG first and each pass improves this. $config->imageSizerOptions = array( 'upscaling' => true, // upscale if necessary to reach target size? 'cropping' => true, // crop if necessary to reach target size? 'autoRotation' => true, // automatically correct orientation? 'interlace' => true, // use interlaced JPEGs by default? (recommended) 'sharpening' => 'soft', // sharpening: none | soft | medium | strong 'quality' => 95, // quality: 1-100 where higher is better but bigger 'hidpiQuality' => 60, // Same as above quality setting, but specific to hidpi images 'defaultGamma' => 0.5, // defaultGamma: 0.5 to 4.0 or -1 to disable gamma correction (default=2.0) );
  8. Peter Knight

    Confirming this worked for me too.
  9. Peter Knight

    Got it. Thanks @dragan too
  10. Peter Knight

    @Vikestart Did you paste this from your config in /wire/ to your config file in /site/ ?
  11. Peter Knight

    Someone suggested that an easy way to output a random image from a field was to use getRandom and then simply use limit=1 I'm not sure where I apply it to the following <?php $randomitem = $pages->get(1034)->images->getRandom(); foreach($randomitem as $item) { echo " <img src='{$item->url}' class='squares'> ";} ?> Does it go at the start where I define my variable or somewhere in the echo statment? Thanks
  12. Peter Knight

    Good to know - thanks. Do you mean choose option 2 below? FastCGI application served by Apache FPM application served by Apache FPM application served by nginx
  13. Peter Knight

    That's not a bad idea assuming I remove it before we go live with the site. I'll just check with @adrian that this is compatible with his page protector ?
  14. Peter Knight

    They are often logged into the site under PageProtector to view the front end AND logged in via /processwire/ too. Isn't there a way that a user can be kicked back into the pageprotector login screen if their session has expired?
  15. Peter Knight

    Thanks. I've added the sessionExpireSeconds to my config. There was nothing in place regarding this previously. I also enabled the Module Session Handler Database and had a PHP warning within processwire as follows I'm going to add that ini_set and hope it helps.