Jump to content

MarcC

Members
  • Posts

    370
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MarcC

  1. I tried to adapt the pagination code shown in the API docs, but I'm getting the same items (first 8 ) shown on each page as I go through the pages. Any ideas what I may be doing wrong? Thanks. <!-- Portfolio List--> <div id="portfolio-list" class="content"> <?php $results = $page->children->find("limit=8, sort=title"); $pagination = $results->renderPager(); foreach ($results as $i) { $firstimg = $i->images->first(); $f700 = $firstimg->size(700,500); echo " <div class='four columns module-container {$i->parent->name}' style='padding-bottom:20px'>\n\t <div class='module'>\n\t <div class='module-img'>\n\t <a href='{$i->url}' title='View item details'>\n\t <img src='{$f700->url}' title='{$f700->description}' alt='{$f700->description}' />\n </a>\n </div>\n <div class='module-meta'>\n\t <h5>{$i->title}</h5>\n <hr class='half-bottom' />\n \${$i->Price}\n {$i->body}\n </div>\n </div>\n <span style='display:block;'><a href='{$i->url}'>{$i->title}, \${$i->Price}</a></span> </div>\n\n\n "; } echo $pagination; ?> </div> <!-- /End Portfolio List-->
  2. Thanks, everybody. I have noticed occasional slowdowns with a few different hosts and wish I could more easily pinpoint where they come from. Especially when load averages are normal...you have to wonder if a move to a dedicated server would be a big improvement.
  3. Thanks apeisa, great comments. For now I have linked the "DESIGN PORTFOLIO" text to the first portfolio item, but I will talk to the agency team about it. Perhaps a hover color or other effect would make it more clear. As far as the hosting goes, that's really interesting. The agency site is on a Dreamhost VPS, and the Yarn Haven site is on a Knownhost VPS in Dallas. Could you tell me if you have similar issues with my personal website? It's on yet another VPS with Site5 and I'd be interested to know if there's a perceived difference. It doesn't run PW, but it is cached, though perhaps it wouldn't make a big difference in initial download speeds. I have heard people say they thought Knownhost VPSes have an I/O bottleneck issue somewhere, and the Site5 VPS seems much more responsive, but it's also closer to me (California, my home, vs. Texas).
  4. http://www.heidisyarnhaven.com <-- Built using Shoppica theme and PW http://www.dgcreative.net <-- conversion to PW from old Joomla-powered site. Both are very recent soft launches but I'd love any feedback.
  5. A short writeup on people searching Google for "custom fields CMS" (with that string in writeup article title), discussing the way Processwire fits the needs of that distraught, often lonely crowd, ought to help out nicely, too.
  6. Thanks, Ryan. That's great advice and I'm sorry about the vague question. So the goals thing, yeah. When I was doing this in plain 'ol PHP, a friend said I might use a database table with a unique goal ID of YYYYMM. I liked the idea but it seems like the best approach in Processwire would be to create a "Goal tree" like: 2011 01 02 ... 11 12 Etc... ...and then just use the API and whatever variable math I need to crunch numbers. I'm going to start with that idea, anyway. [glow=red,2,300]GLOW[/glow]
  7. I am putting together a business dashboard in plain PHP+templating engine at the moment, and I thought maybe Processwire would be an OK fit for the project. The advantage would be that a lot of work has already been done on editing individual items and there's a full API. So the requirements are like this: Keep a list of clients Keep a list of invoices sent, with amount, client name, other details Keep a list of monthly goals for each year. A goal represents an amount that is to be billed that month. Optional: Keep track of issues and ongoing projects with each client. Store things like a project due date, milestones, and TODOs. Output: Probably some JavaScript-enhanced charts and tables with other dashboard-ish stuff, like, "Amount left to bill in order to reach monthly goal," things like that. Anything I'd need to be aware of? Advice? I wasn't sure how to handle things like goals. Thanks in advance.
  8. Ah, that's the one. Thank you!
  9. My wife just showed me this thing that's happening to her in 2.1: If she uploads an image via the Browse button, two images are uploaded--or at least show up on the page. There is a duplicate. If she uses drag-and-drop, the behavior is correct; only one image shows up. Any ideas or existing bug? This is in FFX in Win7. Thanks!
×
×
  • Create New...