Jump to content

Peter Knight

Members
  • Posts

    1,379
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Peter Knight

  1. 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 ?
  2. Which mobile framework are you using to build this? Are you using UIKit or Boostrap etc?
  3. 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.
  4. Solution available in today’s blog post. https://processwire.com/blog/posts/processwire-3.0.121-core-updates-and-more/
  5. '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.
  6. 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) );
  7. Confirming this worked for me too. ?
  8. @Vikestart Did you paste this from your config in /wire/ to your config file in /site/ ?
  9. 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
  10. 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
  11. 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 ?
  12. 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?
  13. 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.
  14. I appreciate it could be a lot of things. 1. I'm using 5.5.60 2. Not sure 3. Not yet but we will be when the site goes live I think what's happening here is as follows. 1. Client logs in via page protector to their site 2. While browsing the site they leave a tab open and go into meetings etc 3. They come back 15 mins later and their session has expired 4. They try to browse the site but as their session has expired, they get a spinning / loading thing Does that sound like a plausible explanation? And if so, is there a way to extend someone's Processwire session cookie for an hour or so? P
  15. I have a demo site which I moved to a new VPS for client testing We noticed that leaving a page open and then revisiting the site can result in a 25 second(ish) to load time and will then throw a 500 Error. The hosting guys had a look and confirmed that the server is fine but the issue could be related to authentication or sessions. We are running Page Protector and ProCache so I wondered if there were any known bugs here and any recommended actions. My actual PW log doesn't show anything but the server log has plenty of these 2018-12-06 08:14:00 Error xxx.141.1x.101 500 POST /who-we-are/ HTTP/1.0 1.58 K Apache access 2018-12-06 08:14:45 Warning xxx.141.1x.131 mod_fcgid: read data timeout in 45 seconds, referer: http://demo.abc.not/who-we-are/ Apache error 2018-12-06 08:14:45 Error xxx.141.1x.131 End of script output before headers: index.php, referer: http://demo.abc.not/who-we-are/ Apache error 2018-12-06 09:03:18 Error xxx.141.1x.131 2614#0: *667 recv() failed (104: Connection reset by peer) while reading response header from upstream nginx error Thanks P
  16. I’ve often wondered how to do this. Especially when building with responsive grid systems. Thanks!
  17. Thanks @horst that worked. When I set sharpening to none, it was reflected on the final save window. I'm still getting a slight pixelation on the source jpg but it's probably non Module related. It's hardly noticeable but would be keen to hear if you think it could be.
  18. Hi Tom Thanks for this. I had unexpected results with this and I think I know why. My array consists of 4 items (Categories) so $Cats->prepend( $Cats->eq(4) ); works until I hide the current Category. Essentially this means the array only consists of 3 Categories and the page throws an error. That's only my guess. If I do $Cats->eq(3) etc or a lower number it works. Worked for me. Thanks @Robin S
  19. Thanks guys. I actually realized I’d asked this before. Sorry about the duplicate post.
  20. Hi I have a page reference field which are a series of checkboxes in the back end Web Design Web Development Marketing Administration In my template I was previously listing only 1 key skill at a time but now I need to output each checked item separated by a comma IE Marketing, Administration This does work but echoes Marketing, Administration, foreach ($staff->skills as $item){ echo "{$item->title},";} How would I keep the comma from appearing at the end of the last item? Thanks
  21. Hi Horst Possible bug... When I'm in the popup window which displays the crop preview, there's a sharpening dropdown. If I select None as the sharpening value, the next screen (the Save screen) lists the sharpening as Soft. It also does this when I set the sharpening to Strong. I haven't checked the others (Medium, Hard etc) ProcessWire: 3.0.119 CroppableImage3: Latest
  22. I can't sort them manually because the order is used in other layout components across the site. Technically I could build an extra kind of sortable page list but I also want to keep this really simple for a client who will be maintaining the site.
  23. Thanks Robin. These are new to me but I get the general mechanics. What is the console part of your screenshots ? A module?
×
×
  • Create New...