Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/23/2012 in all areas

  1. I can't believe I missed this [Field-Template Context]. It's cool enough that the admin allows for varying width fields and so allows you to compose rows of associated fields, but now (or from a while back, I'm not sure) you can not only do it at the field level (so relevant for all new uses of that field) but also at the use-of-that-field-in-any-given-template level. And as the video and note beneath point out, also the Title and Description can be custom per template-use. Fantastic for making the admin experience as intuitive and neat as possible for a client!
    2 points
  2. For all you star wars fanatics: http://www.amazon.com/Darth-Vader-Star-Wars-Chronicle/dp/145210655X Arrived today and me and my 5 year old son both love it Please feel free to share other great stuff here.
    1 point
  3. You're missunderstanding viewable(). It's only for checking if a user has view permission. I think what you're trying to archive would be: if( !$parent->isHidden() ) ... Do a "page->is" search on the cheatsheet to see further methods. Edit: ...oh and I drink coffee not beer. Edit2: Damn you already got that in your code... (not enough coffee I guess) need to read again. lol Edit3: Ok I added a !, so this looks ok. Reading again you already got the answer there in the code. Anyway, as an alternative, you could also leave the apple page visible and create a special template ie. "redirect_xy", and use that to do redirects to the first child or anything you could specify. You then would also have to deal with the searchresult additionally, or maybe not. For example the: $session->redirect($page->children()->first()->url); Or maybe even add a page field (single) to the template to select the page to redirect to. $session->redirect($page->redirect_page->url); But your solution seems ok to me. Just wanted to give alternatives (for others and the record).
    1 point
  4. Alan, none of the updates should require running an install script. PW keeps track of an internal system version for things like DB modifications. If it detects that the system version has changed, it runs it's own install script behind the scenes on the first request after it detects it. For instance, a DB modification took place about a month or so ago, but I don't think anyone knew it.
    1 point
  5. Do this test to see if everything is working properly concerning security
    1 point
  6. Great to hear that it works, although I'd be somewhat careful here: That condition checks if URL is valid and thus removing it could potentially allow non-valid queries into PW which in turn could result in strange behavior and/or security issues. I'm not an expert in this area, though, so I might be worried for no reason -- of course Ryan knows best how this stuff works so I'd ask for his opinion before implementing this "fix". Most likely better option would be to determine how their rewriterules work and create one that's specific to IdeaWebServer to ensure that URL's still get filtered correctly. -- Somewhat offtopic, I did some research conserning IdeaWebServer and you might want to take a look at this (still unresolved) WordPress ticket: http://core.trac.wor...org/ticket/9763. So clearly there are existing problems with other platforms too. You did say that WP works now though, so it might be that they've fixed that problem and the ticket was just forgotten. Anyway, the point of above comment is that if this really is software developed and maintained by one specific service provider, then that's not a very good situation for it's users. But that's naturally just my opinion -- on the other hand it does seem like they've got very good customer service, which always makes things easier.
    1 point
  7. Thanks Ryan for making this possible and thank you all for testing. This is something I've been looking for ages. Especially the flexibility with the API.
    1 point
  8. Thanks apeisa! Yeah very mysterious I just asked them to list processwire.com under credits, so it's there now.
    1 point
  9. Alchime, I actually have not tried out that tutorial yet, so need to take a closer look at that. However, attached is a template file (basic-form.php) that is ready to use as a basic contact form with the default site profile. Let me know if this is helpful? basic-form.php.txt Note that you'll have to rename this to basic-form.php, place in /site/templates/. If you want it to email to a specific address (rather than the superuser) than edit the file and enter your email address in at the top where it says to.
    1 point
×
×
  • Create New...