Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by FuturShoc

  1. Yep! Page numbers are enabled, per the documentation/tutorial. Here's a link: http://pvcc.inthooz.me/members/
  2. We're trying to build a "Members" page, with pagination of the 2,000+ user profiles. The pagination links are showing up as expected and some results are being displayed. And the URL does change correctly as page links are clicked. However, the pagination links themselves aren't changing the content of the page. It always just shows the first page of results. $results = $users->find("id>1, start=0, limit=24, sort=name"); $pagination = $results->renderPager();
  3. Ah, yes. Definitely a cleaner soluton. Thanks, apeisa.
  4. Ok, it appears my problem was trying to delete a user that was already deleted. See, I'm reading all this user data from a CSV file and I'm mapping various bits of text from each row to the different fields I've added to the user template. If I get the mapping wrong or I need to revise it, I needed some way to delete all of those users so I can retry the import again. In the process of going back and forth, I got my unique usernames mixed up a bit (generated by concatenation of row data). This fixed me up: try { $u = wire("users")->get($username); wire("users")->delete($u); } catch (Exception $e) { // fires when no user exists by that username }
  5. Ah, I see. I've revised my code to this: $u = wire('users')->get($username); wire('users')->delete($u); ... and I get this: Error Uncaught exception 'WireException' with message 'Unable to delete pages of type ''' Thoughts?
  6. $u = $users->get($username); $users->delete($u); I'm trying to delete users in a batch process as I perfect my import script. However, I'm getting this error on the above code. Error Call to a member function get() on a non-object Cany anyone see a reason this might fail?
  7. Thanks for your input, Pete. Yes, I was afraid of that. I'm really pushing ProcessWire adoption in my shop, but we just landed a big new contract with a municipal client who specifically asked for version control of pages and approvals. I may have to use SilverStripe (our previous shop standard CMS) for this one as I won't likely have time to work out the details of our own PW module in the timeline I have.
  8. We've got another upcoming website project with a client who wants to manage site updates in an approval style workflow. User roles would be generally normal, but they'd like to have the sit generate emails to super users who then "approve" site changes before publishing them. I don't expect anyone to write the code for me, of course, but I'm interested in general feedback on what parts of PW to exploit to achieve this goal. I'm guessing from other posts I've read about user roles that a PW hook might be the best answer here... But I also want to make sure I'm considering any and all native features that PW might provide to help.
  9. Aha! That seems to give us what we need. Thanks, Ryan. Off the cuff, I wouldn't have expected that to work since I see "parents" as however many siblings exist above the current level. But, clearly, the parent/child model doesn't work *quite* like genetics. ;-)
  10. Can someone suggest a way to get the *level* of a page in the hierarchy? I need to do something different on a page template, IF the page exists at the third level of the page hierarchy. I was hoping for some kind of $page->level() method I could call, but that doesn't seem to exist.
  11. Wow. I just stumbled on this: http://processwire.com/api/variables/user/ It looks like I don't even *need* to know the structure behind user accounts. By using the PW API, I can generate user accounts all day long... Am I right? So. Awesome. Thanks, Ryan! And everyone else here, of course. lol
  12. Hi, folks! We're working on our first big website project using ProcessWire. We're no longer in "fiddle and play with PW" mode. We're committed. My question: The site will have a directory of organization members, each needing a login/pw and a profile page. We're planning to use the existing Users/Roles model of ProcessWire, but we need to generate several thousand users from a pre-existing text file. Now, I won't have a problem writing a plain PHP script to parse the text file and interacting with the database. BUT i could use some help understanding how the user details and fields are laid out in PW's default install. I'm discovering, as many of you already know well, that even users are just pages. This, however, makes it a bit less than obvious how one might generate users programmatically on the fly. I would welcome any input or guidance you might have in helping me know *where* to insert *what* into the DB schema. I'd also welcome any anecdotal experiences you may have had doing something like this yourself. Caveats?
  13. Got it! Thanks, guys! I'd have sworn I tried dumping my cache. As it turns out, the "/styles" folder wasn't getting uploaded when I installed the theme. nikola - The theme is gorgeous! Thanks for your work on it!
  14. This is my favorite of all the listed admin themes. For some reason, none of the CSS files are loaded properly when I install this theme. Could it be because I'm using a non-standard URL?
  15. I seem to be having some trouble here. I'm developing a site that must live at a staging web host during development, then move to its permanent home at launch time. During development, the site address is: I've successfully installed PW, however, i'm not able to get to the PW control panel using: or this: ============================ ...later. Ok, although I had a suspicion that htaccess was the source of my problem, I hadn't dug deeply into it enough. 1. I had failed to notice the helpful comments in the PW htaccess file which noted a need to add a RewriteBase rule for sites including the tilde character. 2. I had foolishly not trusted the documentation which clearly noted that "" would be my control panel url. NOT "/wire" as I had oddly assumed by looking at the directory structure. D'oh. Apologies for the false alarm.
  16. For the record, I have a friend who works at Ellis. They've just fixed the trailing slash issue on the CI documentation.
  17. I guess what threw me about how PW handles image uploads is adding an "image field" to the template. This, in my mind, implies that any page derived from that template is inheriting its own images "container". But from reading your clarification, I gather that this images field is more like adding a "portal", of sorts, to ProcessWire's image directory... Correct?
  18. Thanks so much for your help, guys. So, as I understand it, I essentially have to *attach* a photo to the page using an additional field before I can place it using TinyMCE? ** Updated: I see now. So, the new "images" field I create and add to the template serves as a repository for images that I will want to insert INTO a given page derived from that template. This will take some getting used to. Other CMSes I've developed with tend to store images in a single common "container" of sorts. This container would be accessible by any page and any template. I guess its just something we'll have to un-learn.
  19. I'm brand new to PW and would like to find out how you guys are handling a need for image placement in a WYSIWYG field. We almost always need to place an image in a page's content with text wrapping, floated left or right. However, I don't see a way to do that in the default TinyMCE...?
  • Create New...