• Content Count

  • Joined

  • Last visited

Community Reputation

5 Neutral

About reed

  • Rank
    Jr. Member
  1. Oh man, I've made a stupid mistake. I didn't have AutoComplete included in the list of accepted field types for the Page Inputfield. So AutoComplete wasn't appearing as an option for any of my Page fields, regardless of parentage. In fact, it looks like AutoComplete now works perfectly, with any parent or selector you want. Man, Processwire just reads my mind. Thanks Ryan and community once again For anyone with a similar issue, just go to Modules, scroll down to Page, click Settings, and add PageAutocomplete to the list of "Inputfield modules available for page selection."
  2. Hey y'all! I've been digging through the forums trying to find a workaround for the Page AutoComplete Field. So far, no luck. Here's the problem: Currently, to use the Page AutoComplete Field, you have to define a single parent for the pages you want to select from. I want to use the AutoComplete field to add multiple pages from different parents. For instance, I have a field for location, and I want to add the MET Museum and The Louvre, but the MET has parent USA, and the Louvre has parent France. Currently, it's very labor intensive to scroll through a list of 300+ locations, or use AsmSelect to drill down. AutoComplete would be a godsend. I've not been able to find any way to workaround this issue, any ideas? Thanks for any help or recommendations! — Reed
  3. reed

    Thanks cstevensjr! I'm connecting my google analytics to the search now — it asks for the search query parameters. For Processwire that looks like it should be 'keywords' ? I'll go with that and see what happens. Thanks again!
  4. Hey folks, I did some digging to see if I could find anything on this, but I couldn't turn up anything. Does any one have a recommendation on how to track the terms that users enter in my site search? Thanks for any thoughts!
  5. reed

    horst — many thanks! This worked perfectly. It's a pretty hefty database call, so I've limited the number of subjects to 20 to keep the TTFB down. But it works! And @Macrura, thanks for your thoughts as well - I'll keep that solve in mind — Here's my final function: function rendersubjectlistsort($pages) { $out .="<div class='listWrapper'><div class='imageList'>"; $pa = new PageArray(); foreach($pages->find("template=subject, limit=20") as $subject) { $subject->set('myCount', findartworks("subjects=$subject")->count); $subject->set('myImg', rendersubjectArtworkList(findartworks("subjects=$subject, limit=1"))); $pa->add($subject); } foreach($pa->sort("-myCount") as $item) { $out .= "<a class='listItem' href='{$item->url}'>" . $item->myImg . "<div class='itemInfo'>" . "<h3>{$item->title}</h3>" . "<span class='dates'>{$item->myCount} images</span>" . "<div style='clear:both;'></div>" . "</div>" . "</a>"; } $out .="<div style='clear:both;'></div></div></div>"; return $out; } Thanks again!
  6. reed

    Hi Horst! Excellent questions — I've got pages with two different templates: artworks, and subjects. On the artwork pages, I'm using a page field (set to allow multiple pages using AsmSelect) to link to subjects. kixe — that does work, but the end result is still ordered by title, and I'm attempting to reorder the list by $artworks->count; from highest to lowest. I'll kick it around more today, thanks for your input!
  7. Hey folks, I'm attempting to order a list of subjects based on the number of pages (not child pages) that link to each subject. The end result will look like this: portrait — 120 items landscape — 78 items trees — 42 items beards — 8 items etc. I've been digging through the archive here, but I can't seem to find a solution. The issue is that I'm using wire('page')->find to get the list of subjects, and then getting the number of linked items inside the foreach — here's my code: $subjects = wire('page')->find("template=subject, sort=title"); foreach ($subjects as $subject) { $artwork = rendersubjectArtworkList(findartworks("subjects=$subject, limit=1")); $count = findartworks("subjects=$subject")->count; } I can't figure out how to either combine my queries or re-sort the list after the call. Any ideas? Thanks so much for any help!
  8. reed

    Hey Can - I know it's been a while since you set this up, but I'm wondering where you added the Codebird code - was it a modification to the SocialTwitterUpdate module, or did you add it to one of the admin templates? Thanks!
  9. Hey folks, I'm looking to implement the Google Maps Store Locator library to create a "Find Locations Near You" page for my site. I'm using the MapMarker fieldtype to create my locations, but I'm not sure how to connect my location data to the storeLocator.DataFeed The examples provided for the Store locator fetch data from static CSV files or web services. Any thoughts on how to hook things up? Thanks so much!
  10. Hey all - I've got a new question concerning the image resize timeout discussed here: But the problem I've run into is that when the timeout occurs, it corrupts or doesn't properly build the resized images. I need a way to force the resize to run again, preferably just for the damaged/missing images. You can see an example of the missing images here: - scroll down in the right and check "Autumn Evening" - the image name has been created, but the file is broken Any ideas? Thanks so much!