Jump to content

Pete

Administrators
  • Posts

    4,045
  • Joined

  • Last visited

  • Days Won

    67

Everything posted by Pete

  1. Now the new default admin theme is a module, how would I go about creating another colour scheme for it? Is there a way to extend it and if so how would I do that?
  2. Actually, scratch that. Since what I'm doing can have multiple software tagged to it (it's a knowledgebase system where some articles can overlap different packages) there is no quick and easy way to achieve this anyway. Not to worry - new versions don't come out very often anyway.
  3. I've got a Pages field that I've set to allow new entries whilst editing a page. What I want to do is intercept the page save for the added content if possible and set another field on that page based on something in the main page. So to make that clearer (yes please) I have a page with fields for: Software name Software category Software version Software version is my Page field and I want the ability to add new ones on-the-fly, so I set this field to Pages and allow new pages to be added. The software version template itself has a Page field that links it to software name, so when the page above is saved, I want to intercept the software version page creation and link it back to software name. Any ideas? I know it will be possible somehow, but I've not heard of anyone trying this before.
  4. I've merged the pull request - thanks
  5. The problem was the more I thought about it from a technical point of view trying to get everything as a single page, the more headaches it gave me. Plus I'd likely prefer having the text box be a minimal CKEditor as well
  6. For use cases I'm thinking of right now, I think images, text and videos would be enough for now. If you have a module that allows you to tie these to fields in a specific template, then when you create a new page replace the normal editor with Sir Trevor, you could have it use the native fields and store the parsed content in a hidden body field. So your images go in a multiple images field, your video URLs in a custom field (repeaters don't scale infinitely) and text some other way and the whole thing is parsed into a body field ready to render.
  7. I forgot to mention as I saw it asked earlier in this thread, I've had bad experience with DROBO (so bad I can't remember what went wrong now!). QNAP is a fairly good solution - problem is it has fallen over when I've used one at the point it got full. No warning, just RAID failure. The flavour of the year for me in NAS backup is Synology - lovely interface, easy to set up. You can run a webserver on it so you could have a script on your sites perform backups to compressed files then have this box just go and fetch the files via FTP in a PHP script. Leave it in a cupboard and you're sorted You could of course do the same thing via your PC/Mac I imagine after they boot every day, but there's something nice about being able to set something like this up and just leave it going. They power down the disks when not in use so are reasonably power-efficient, and if you get a 2-bay model in RAID you're covered from data loss. Put one in your house or a relative's house as well and you're doubly covered.
  8. Try if(!$input->post->{$feature->name})
  9. I'm on a custom built PC that I just set to automatic overclocking to see what it did. It boots up into Windows 8.1 in about 6-7 seconds from a cold start which is nice Core i7 processor @ 3.5ghz (boosts up to 4ghz on occasion), 16GB RAM, 250GB SSD, ASUS GTX 660 OC graphics card (for games, in case the spec wasn't already spelling that out!) and a REALLY quiet Fractal Design R3 case (it's really heavy as it's lined with what appears to be dense, 5mm rubbery material that absorbs the sound you usually get from a base unit). I like it because it's fast and quiet and cost me ~£1,000 (even less nowadays if I stuck to the same spec). Strangely, I spend less on monitors. I see expensive monitors in use all the time but since I don't get any eye strain on my 24" Samsung that was pretty entry-level a few years back I don't see the need in upgrading. I spend more on keyboards and mice though. I find these really comfortable to use and with the amount of time I spend using them I don't mind spending the extra on them: http://www.logitech.com/en-gb/product/illuminated-keyboard-k740?crid=26 http://www.logitech.com/en-gb/product/performance-mouse-mx?crid=7 I suspect ryan would dislike this keyboard as it's a bit too modern
  10. Adrian - I had the same thing when scrolling too fast one one of the entries in Firefox on Windows - it decided to slide back to the start for some reason. Other than that, great site and unique look - certainly not straining my eyes reading it
  11. 16 minutes - you were 1 minute over my guess as to how long it would take you to save the day Thanks Soma!
  12. Hi guys I'm sure I'm missing something really simple, but I'm trying to write a module that intercepts the page being edited and works out the template and other information for that page. I hook it in the module like this: $this->pages->addHookBefore('ProcessPageEdit::execute', $this, 'something); But then I'm not sure how to access what the page's template is. If I do the following then it gives me information about the ProcessPageEdit form and not the page being edited: $page = $event->object; I'm sure I've run into this before and resolved it before but I just can't find or remember the code.
  13. I did the same thing at the weekend
  14. I like warm. Feels all... warm Could just be an easy installation choice I think.
  15. You mean you're literally not clicking anything - as in it's automatic whether you touch your keyboard and mouse or not? Or is it just when you click to another page? Have you upgraded your installation or installed any modules on the site between the time it was working fine to now? I'm just trying to rule out a few things.
  16. No, that's normal. Read ryan's post about it here: http://processwire.com/talk/topic/2387-the-structure-of-fields-and-templates/?p=22762 Basically, since any field can be used in multiple templates, you can't simply have a table for each template with the PW fields as mySQL table fields. Plus, several of the more advanced ProcessWire fields have multiple fields of their own in their table in phpMyAdmin (in fact I think most/all have more than one). Therefore any other way of storing them in the database simply wouldn't work as well and would presumably be a nightmare to program for.
  17. Or that Soma, yes
  18. If your admin is located at /processwire/ it looks like the easiest thing to do is edit your .htaccess file and add this solution to it after RewriteEngine On: http://stackoverflow.com/questions/9642877/redirect-only-one-folder-to-https-all-others-to-http Remember to leave the RewriteEngine On line off the example (don't want it in the .htaccess file twice) and change secure to processwire from the example. Should work but I've not tested it.
  19. Does it have to just be the backend? I don't think there's any harm in setting the whole site to SSL if you want to be on the safe side.
  20. Oh now this looks super-useful: https://github.com/ryancramerdesign/ProcessWire/commit/e5847d667aa200d050815acf73abaeeb30c96493
  21. I just use my scroll wheel for scrolling, not clicking, so that will be where I'm going wrong. Still, it's one habit I'll never break I don't think as it doesn't take long either way.
  22. When people say option+click are they talking command + click on a Mac? Not sure about other PC users but I always just right-click and select open in new tab... but then again I'm probably the only one still living in the 90's and not using that shortcut. Y'know, the forum software does allow you to create topics with polls so it might be a good way to gauge people's reactions to things like this. Trouble is I know things like this seem trivial when coding (been there myself) so it never seems that big of a deal at the time but afterwards everyone has an opinion - which is fine of course, just sometimes unexpected
  23. Cool - I didn't even know about being able to set variables like that!
  24. Great idea - love it I installed it though and I can't see where to add page permissions on each page yet. Am I missing something or is that bit not ready yet?
  25. I seem to have become hooked on Bastille the past few months: https://www.youtube.com/watch?v=F90Cw4l-8NY Also love this cover: https://www.youtube.com/watch?v=ZCTDKLjdok4
×
×
  • Create New...