Jump to content

Pete

Administrators
  • Posts

    4,054
  • Joined

  • Last visited

  • Days Won

    67

Everything posted by Pete

  1. Crikey, is that ridiculous hacking scene in the movie Swordfish going to turn out to be real in a few years? (bit of swearing involved) I like the bit where he's squatting like he's doing... erm... well... something he should be doing in the bathroom. I find that helps me think too The line at the end should be "now all I gotta do is write some actual code". Every time I see that I laugh until I nearly cry.
  2. I was reading through the site early this morning and noticed a mis-spelling that is potentially embarassing: Someone has typed Salman Rushdie on one of the pages as Salmon. He is not a fish
  3. Relative time was introduced in 2.3: http://processwire.com/about/news/introducing-processwire-2.3/ Not sure about the differences as I've not checked out the other module. EDIT: Oooh he beat me to it by seconds
  4. Don't they say what they do if you go to the modules page on your installion and click on them? Can't check myself as I'm on my phone but I would have thought they'd have a description of what each does there.
  5. I've not had a chance to look at the video yet, but I'm wondering it might be an idea to put videos on the ProcessWire website? Just looking at the topics you're suggesting it's the sort of thing people are definitely looking for so why not have them closer to hand?
  6. brainstrain.co (mine hurts)
  7. coolstuffbynico.wordpress.com We have a winner.
  8. Seems about right. Nothing wrong with the way you've done it, but the short one-line version would be: $userpages = $pages->find("template=child-template, created_users_id=" . $users->get($page->name)); Rather than using $selects all the time, I would name it something more meaningful like $userpages above, then iterate through them: foreach ($userpages as $userpage) { ... It's more descriptive when you build your template file up and there's lots going on - helps you keep track of things a bit easier especially when you're using multiple PageArrays on a page, though it's not essential to do this and everyone has their own preference and naming style.
  9. I had to stop liking your posts Antti because I was wearing my mouse out I should have been using this to save time on a tonne of stuff recently, but I hadn't noticed that you could create new pages with it now. It will be a huge timesaver for a bunch of simple pages that have tabular data as I can now add new "rows" (new page) and edit current rows (edit page) using Fredi without having to roll my own templates and code to reinvent the wheel
  10. Pete

    ProcessWire on the web

    Love your post Teppo - it did make me wonder if there should be an official blog on this site if certain folks would be willing to post to it? I used Google Translate on that article above Antti - some amusing mis-translations I think by Google (such gems as: "ProcessWire does not matter by itself", "So there is no overhead - but you can also get paid nothing") but I got the idea and it was a nice, positive and concise assessment.
  11. I tend to sort by created then by id in this case. Or if you're using the API to import something then overwrite the created time (can't remember if you can do that but certainly you can use another field).
  12. Why would you want to use IDs instead of human readable (and memorable) URLs? I don't understand why that would be desirable. If you are worried about page URLs changing then there's a module you can use to take care of that. The subdirectory thing isn't a bug, your URLs in your example start with a / so this will always go to the root folder. You can add this in place of that first / to resolve that. <?php echo $config->urls->root; ? >
  13. Php.net also has a lot of info if you're interested interested basics. I guess it's helpful knowing what things are called first though, but any good tutorial should cover that.
  14. You don't need $this->input unless you're in a module or function - try it with just $input maybe?
  15. The alert I got refers to the domain where it was uploaded, so the free server service might be the issue? Can you PM me the URL to their service and I can confirm.
  16. @pwired - my Trend Micro at work threw up this error on the website you linked to: I've removed the link in your post because this scanner is usually right!
  17. You're not putting it in the Body field in the admin are you? Because your PHP should be in the /site/templates/yourtemplate.php file.
  18. If the gallery is private (I.e. requires a password to sign in) then Google will never find the images anyway will it?
  19. Just ran into this issue myself as I wanted to use showIf in a reasonably complicated fashion with a repeater so I guess I'll just disable the showIf for now.
  20. In fact I know ryan likes to retype pull requests himself so he has full understanding of the code changes and tweaks them as necessary. This is opposed to my occasional blind acceptance of pull requests on my own modules that is definitely not best practice!
  21. Are you using repeaters in the template for the page you are trying to add? Or is this just at the stage where you enter a page title before going to the main page editing form?
  22. Despite the challenges it looks like you had fun - nice project to work on by the look of the end result
  23. @diogo - nobody asks the guy what he wants to do, but "there's a plugin for that" (paraphrasing Apple of course ).
  24. My thinking was simply checking if the input button has been clicked and only creating a revision if $this->input->post->submit_save is present. Along similar lines, it would be great to have the option of not creating a version of any field until the page is published (no versions for an unpublished page). Both of these are useful/desirable in some scenarios and not in others so I'm happy for them to be configurable options - as it is the module is already awesome
×
×
  • Create New...