Jump to content

Pete

Administrators
  • Posts

    4,055
  • Joined

  • Last visited

  • Days Won

    67

Everything posted by Pete

  1. Must spam to catch up (kidding). I was just looking for some examples of multi-level menus for another project so this is yet another useful thread I've now got bookmarked!
  2. Really looking forward to this - keep up the good work, but yes - remember to sleep
  3. Yup, I think it must be memory related. I'll change some setting in the morning. Cheers for checking Ryan - it always helps if someone else tests it even if it's not an issue that can be reproduced.
  4. I wonder if it's because some of the filenames have dimensions in them already before uploading? Doesn't explain the alien image not uploading for me though. Attached are three that wouldn't upload (these are original size and original filenames). I'll try increasing memory and so on on my test server later as that might be it if these work for you.
  5. Hi guys I've encountered what I think is an error with Image fields. Change the settings of your image field so that the max width is 1600 and the max height is 1200. Upload a picture in landscape orientation that's larger than this and it works, Upload a picture in portrait orientation that's larger than 1200 and it breaks. So for me it's failing with errors when uploading large portrait-orientation images. Can anyone else reproduce this? Feel free to change those values to smaller ones if you've not got any huge images to hand
  6. I'm just creating the pages manually. Perhaps if it's a potential issue with other languages then having that as some sort of config option would be the way to go with it disabled by default?
  7. Keep up the good work - I'm looking forward to giving this one a test
  8. I think a better way would be to write a module that hooks into the template itself and simply makes all the fields that aren't in their language hidden, then hide the surrounding DIV so the label and input fields don't show. Of course, I'm not sure how to do that
  9. This one's for ryan, but obviously open for discussion to all. Whilst porting a reasonably large site over to PW I noticed that the ampersand character (&) gets stripped out when a URL is automatically created from a page title. Is there any chance this could be automatically converted to the word "and" instead? Sure it's not amazingly important, but it allows for more legible URLs.
  10. Wow. There's the majority of the need for Flash/Java uploaders gone for good On sites where I'd be creating forms for other admins to use on one of my sites I would probably speciify that they have to update their browsers to use the CMS. It will obviously be a few years before the majority of folks have updated to a HTML5-compatible browser however I'm looking forward to using some of these features down the line to make life easier. In fact, I'm sure I saw a jQuery-based upload script a few weeks back (before my laptop died ) that used HTML5, fell back to Flash if your browser didn't support it and fell back to doing things the old-fashioned way if you didn't have either. That one was just for uploads, but one that was just HTML5 that might be good for getting ideas from is mentioned previously here: http://processwire.com/talk/index.php/topic,351.0.html
  11. Wow! And it's taken them this long to roll HTML5 out because...? Seriously, if we'd had the file API about 5 years ago so many of my projects would have been so much simpler
  12. Nice ideas, especially since it sounds like it just degrades gracefully on older browsers.
  13. Okay, I've updated the module in the first post to v1.0.1 - it now allows you to choose a page to redirect to. If you don't choose a page to redirect to, it defaults back to the login page. I'll likely make more changes over time however this makes it much more useful for now EDIT: Just a quick note - you can unselect a page to make it fall back to the login page, however you have to navigate to the page in the tree and click the "unselect" option - this seems to be the default way PageListSelect operates. ryan - is there any quick way for me to add an "unselect" link next to the "select" link at the top of the page tree? I'll also probably be trying to open the tree automatically to the right page if one is selected, but for now it's fine.
  14. I've nearly finished a version with the last suggestion you listed - a choosable page. Will upload it soon! Other options will probably follow, however this is probably the more useful setting for now.
  15. Awesome We don't have that beer in the UK (that I know of) hence I've not seen those ads before.
  16. Maybe add it before render?
  17. Cool. Like the fact you've branded up the beer bottles as well. What was this image originally from?
  18. Nice work It would be good if they were collapsible too
  19. Could just have a little (i) for Info icon when you click on a title and stick it at the end of the links, then have a jQuery hover thingy with those details in I guess. Just so it's there if you really want it. I would say that it should be a module though and not by default.
  20. Ditto to everything Soma just said Let's put it this way, I'm even building a website with the wife now and she's happily been building page templates in PW and loving how easy it is. She's very IT-literate, but hasn't done too much with websites or web applications before, so it's still a testament to the the intuitiveness of the software that after only a 5 minute crash course on what things do from me she's picked it up already.
  21. Cheers guys! Congrats on your release too apeisa - you'rs is a bit bigger, but who's measuring!
  22. This is a little module that allows you to put your site into maintenance mode should you ever wish to. It basically checks to see if you're a superuser and if you're not then every page on the site which you try and load will send you to the login page with an appropriate maintenance message. The styles are hardcoded into the module at present, so changing the default style of the front-end EDIT button could well have a knock-on effect. Ideas for the future: I was also thinking about expanding this in future to allow chooseable roles in the configuration that can access the site whilst it's in maintenance mode, as well as adding the messages to the config so they can be translated. It might also be nice to specify another page to send the user to so that if you want to keep your admin login page hidden you can do. Thanks to adamkiss whose ListAfterSave module this was written over the top of Thanks to ryan for solving the last piece of the puzzle and helping me display the message in the top-left of every page. EDIT: And my particular usage scenario is that I'm building a site on a live server. It's a brand new site so nobody would really know the URL so I thought I'd build it in the root of the site rather than a subfolder and this module lets me do that without letting folks see it until it's finished. Other usage scenarios could include major template file updates or... whatever else you think it might be good for You can fined the module in the directory here: http://modules.processwire.com/modules/maintenance-mode/ v1.0.6 adds ability to bypass maintenance mode for certain user roles.
  23. Thanks - that works now I'll upload the module once I've polished it up a bit. EDIT: Module uploaded: http://processwire.com/talk/index.php/topic,431.msg2929.html#new
  24. Hmm, nope, that didn't work either unfortunately.
  25. Hmm... can't seem to get it to work though. The rest of my module works except this bit with the message. Here's the line for that hook: $this->session->addHookAfter('Page::loaded', $this, 'maintenanceMessage'); And here's the function (stripped out any additional checking so it should display the message no matter what's going on elsewhere in the module): public function maintenanceMessage(HookEvent $event){ $out = $event->return; $code = '<p>Site in maintenance mode</p>'; $out = preg_replace('/(<body[^>]*>)/i', '$1' . $code, $out); }
×
×
  • Create New...