Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/28/2012 in all areas

  1. Hello, When I see such a great detailed answer and no simple 'thank you'... I just feel like saying 'thanks' to Ryan ;-) Celfred.
    2 points
  2. Just thought I report back with an actual working method for this scenario. I needed to get the title of the next page (category) and create a thumbnail for that category using an image from the first project in that category. our-work - category1 - project1 (need first image from here) - project2 - project3 - category2 - project1 (need first image from here) - project2 - project3 if ($page->prev->id) { $prevThumb = $page->prev()->child()->images->first()->size(100,100); echo "<a href='{$page->prev->url}'><img src='{$prev->url}' /><br />{$page->prev->title}</a>"; } if ($page->next->id) { $nextThumb = $page->next()->child()->images->first()->size(100,100); echo "<a href='{$page->next->url}'><img src='{$next->url}' /><br />{$page->next->title}</a>"; }
    1 point
  3. Er. Um. I got it by using the power of typo [embarrassed sound of shuffling feet]
    1 point
  4. You are referring to the Import Pages From CSV module? Check out this screenshot , "what to do with duplicate page names" I haven't used this option myself but i guess if you check the 'modify existing page' it will update the field body.
    1 point
  5. @Ryan: that seems like a valid solution, thanks! I'll be implementing it in most of our projects from now on .. and for the record, I really hate inconsistency too. It's just that quite often inconsistent image sizes are something we have no control over; this happens when content is either fetched from a third party with varying level of consistency or added by not-exactly-web-savvy content authors.. Like I said, generally I prefer to control these situations with styling rather than scaling, so whenever an image really needs to be of proper size I place it inside a container -- horizontally and/or vertically centered, depending on situation. This has worked for most situations so far.
    1 point
  6. Hi Lance, Steve is correct. One of the first things I built in order to learn PW, was a front-end profile editor. What I have is fairly specific to a University environment, but I think I can strip it back to a more simplistic form and get a walk-through posted. I'll report back soon.
    1 point
  7. Isn't the default sort oldest first? Then you should get newest first just reversing the order (of course assuming you haven't changed the order): $images = $page->images->reverse(); Other WireArray methods: http://processwire.com/api/arrays/
    1 point
  8. Sneak Preview (everything configurable, styling mostly controlled by admin theme):
    1 point
×
×
  • Create New...