Jump to content

DrQuincy

Members
  • Posts

    293
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by DrQuincy

  1. Hi, I have done a few sites with PW now and love it — thanks so much for it. Up to now, I've done image resizing in the templates but this can make the font-end very slow when images are generated (but is fine for subsequent pages loads). To speed it up I have: Enabled client-side browser-resizing so huge images are scaled down before upload Added an InputfieldFile::fileAdded hook so images are re-sized in the admin so the front-end should never have to resize This seems to work great, I just wanted a second opinion to confirm that: Variations created this way will be deleted when the page is deleted, i.e. I do not need a fileDeleted hook The front-end will never re-generate the images (presuming the admin created them) when I call $image->size($imgWidth, $imgHeight) I believe the above two assumptions are correct; I just wanted it confirming. ? Thanks!
  2. Ah, it's part of $input; I was looking in the wrong place. Thanks for the fast reply!
  3. Hi, Loving PW, it's a shame it is not more widely known! I have paginated news items working fine but the page title is the same regardless of what page you're on. So, page 1, 2, 3…10, etc all have the title "News". Is there a way to get PW to automatically append the page number to the title. Or, how can you get the current page number and do it yourself? Thanks.
×
×
  • Create New...