Jump to content

evanmcd

Members
  • Posts

    117
  • Joined

  • Last visited

Everything posted by evanmcd

  1. Hmm, not sure my attachement came through. Here's the code for the module so far: https://gist.github.com/3080802
  2. Hi, Thanks Ryan, for this snippet. I'll be using it all over in a web app I'm building using PW. I've tried to make it into a module, but am running into an issue I confess I don't understand. Could someone who knows the guts of modules in PW more than I take a look at what I've got so far? The error I get is: Method PageArray::toJSON does not exist or is not callable in this context (in /Projects/MyAppFolder/wire/core/Wire.php line 231) Thanks!
  3. Thanks Ryan, I think I will go for option 1. I hadn't thought of that, and it seems like a fine solution for this. We are also using the published status, so it can't do double duty in this case. This is an odd situation in which we have an agency administering the contest that uses subcontractors to actually review the submissions. We want the agency to be able to see and remove from trash (to keep tabs on their contractors), but of course we don't want the agency doing much else in the admin. Anyway, thanks again. I'll post back here with any tips in case someone else with a similar need stumbles across this post later on. Cheers.
  4. Thanks all. I may need to hack a quick plugin together. I'll post back here if I do.
  5. Hi, I wonder if there is any way to set a template to sort it's children by more than one column. I love that we can set this at either the template or page level, but I'd like to be able to sort by two columns as in SQL 'sort by column1, column2' If there's not a solution, I'll consider doing a module for it. Thanks.
  6. Hi all, Does anyone know of a way to create a Role that can be given access to the Trash? In normal circumstances, I agree with Ryan's decision to allow it only to Superusers, however I'm using PW as a the admin for a contest app on Facebook, and I need the company we have handling moderation of the submissions to be able to access the Trash. Any ideas welcome! Thanks.
  7. Ahhh, thanks Soma. I've now finally learned this lesson when using PW: when in doubt, try the most intuitive solution. It works most of the time Have a good day.
  8. Hi, I'm looking to show a field in my Admin list that is of type Page (choose one). When I add it in, I'm just seeing the id of the selected page, rather than the name or title of the selected page. How do I specify which field of the page that's selected in the Page field gets shown? (wow that's a bit of mind twister, isn't it?) Thanks.
  9. Awesome module, Soma. JUST what I needed. Thanks so much for it.
  10. Wow, a bunch of great responses already. @Soma, thanks for that code. It seems to fit right in with what I'm thinking - I will keep that in mind as I start to experiment. I'm thinking of that page field you mention on the user object as the account. Each time a new account is created or a new user is added to an existing account, it gets the account "page" added to it. Same with all of the data that user creates. The actuai pages in my app (Dashboard, Team Members, for example) are viewable by everyone, but get their data based on the account of the active user. Also, thanks for the other framework recommendations. The more I think about it, the more I realize I want to stick with what I know for this project, which means doing it with PW. I'm very excited to start geting into this
  11. Hi all, I'm thinking of trying out ProcessWire for a web app I'm starting to work on. The main reasons I've thought of it are: I've used PW for a few sites and love it I'm loathe to build a good access control system from scratch I could use the PW admin as the admin for my app, and so wouldn't need to build one from scratch I'm interested to try out PW in an app format I could use all that I learn about PW in this project for other PW projects. The main hurdle I'm thinking about so far is how to adapt PWs CMS style user system to one that is more like a SAAS app (i.e. users can belong to a specific account, which in turn can only access data ("Pages") that belong to that specific account). Has anyone tried something like this with PW? Am I nuts to think it might be a good idea? Thanks for any thoughts on the subject
  12. Hi all, I know it's been awhile, but I'm just now checking back on this thread. Thanks for all the kind words - I'll be sure to pass them along to the folks on our team who actually did the design for it (I'm only responsible for the guts of it, not the prettiness). @ryan, I am using template level caching - I have each template set to clear for all pages including the home page on each save, and to save the cache for 24 hours. Without this aggressive caching, I think the site would be too slow in the real world. @AnotherAndrew, in this case the videos are just text fields, representing the main video file name. We are using the JW Player, and do have HTML5 compatibility setup, so the mp4, ogv and webm files are all named the same, save for the extension. For another site I did with PW - on which a client is making updates, including adding videos - I've set it up so that they upload the videos through ProcessWire. Knowing I can't count on the client to upload the HTML5 safe formats, I restrict the file field to mp4 only, then do a check for the existence of the other versions, changing the JW Player config as needed for each instance. I was thinking that, as we continue to use ProcessWire for sites going forward, that I might build a module that uses the Zencoder encoding API, along with JW Player, to allow full HTML5 compatibility for any video file the client uploads. I'll keep the community in the loop on that effort. Thanks again all.
  13. Thanks for the feedback, Ryan. Would be so great to have a built-in synch capability. For now, we'll continue as we were in regards to keeping everything in synch.
  14. Hi all, My team has built a few ProcessWire sites, and we LOVE it - it is now our go to CMS. However, we have come up against the same issue on each site and wonder if/how any of you are managing it. I don't think the issue is entirely specific to ProcessWire, but due to the structure of the way PW stores data it may require an answer that only applies to PW. It's the issue of keeping a staging site database in synch with a live site. To illustrate: we start developing a new section, or modifying the functionality of a current section. All the while the client is making content changes on the current site, and in so doing changing the data in many different tables. Is there an approach, other than manually noting which tables have changed during our update, that people are using to manage this situation? With WordPress, for example, all of the content ends up in one big table, the structure of which doesn't change, so updates aren't that tricky. With PW data and structure being intermingled, it makes it a bit more tricky to manage. I'd really appreciate knowing more about how people manage this, even if it's just confirming that there isn't a better way than doing it manually. Thanks.
  15. I built a single page site on ProcessWire and found it very well suited. I used the method of creating pages, then include()ing each in the index file. The important step for me in this was caching - without it the site would have performed too poorly. I set each template to cache for 24 hours and set the expiration setting to "Clear cache for the saved page and parents (including homepage)". With that the site loads quite quickly. As with any single page site there were other things to consider - SEO, deep linking - but those aren't specific to ProcessWire. Shoot me a private message if you would like some more info about how I ended up addressing those issues. Good luck! (Oh, if you want to check out the site I built, it's at http://agencypja.com)
  16. Yeah, it's definitely compatibility mode. I'm on an intranet site, and our client has all intranet sites force to compatibility mode. The odd thing is, adding <meta http-equiv="X-UA-Compatible" content="IE=edge" /> helps on the non-CMS pages, but doesn't help on the login page - I still get the error even with the meta tag. If I manually switch mode in the dev tools, it shows the login fields, but I can't ask all authors to do that. Any idea why it wouldn't take on CMS pages only?
  17. Hi, When I try to login to /processwire with IE 8 (8.0.6001 to be exact), I get the "Processwire does not support IE7 and below at this time" message. is this expected with IE and the error message is just wrong, or is IE supported? I have a number of client users who will be using the CMS and are using IE 8. I know about Chrome Frame and could use it as a last resort, but would strongly prefer not to. Thanks!
  18. Thanks for the tip, Nico. I've used the same hack you did to enable the oldSchool upload. Works for now, but I miss the slick drag and drop for sure
  19. I'm using FF 7.01 on the Mac. Just tested some more now and found that a 4MB file worked, but a 7MB stalled at 99% - so somewhere in there seems to be the trouble.
  20. Hi, For the first time, I'm having trouble with the file uploader when uploading large files on our staging server. I've got this in the main .htaccess php_value upload_max_filesize 301M php_value post_max_size 301M But, when I upload a file of about 17MB or so, the progress bar stops at anywhere between 96 and 99%. Guessing it's the ajax uploader, but not sure if there's a way to disable it or workaround it. Thanks.
  21. Hi apeisa, Yes we are launching our first client site on PW this week. Unfortunately, it's an intranet site so I'm not able to share it with the community. I'll let you know when we move on to the next one
  22. OK, thanks guys. So this is what ended up working for me. The other issue (field doesn't exist) seemed to have to do with the fact that I had another page, using a different template that had the same name. Adding the template filter fixes that. $my_page = $pages->get("template=template-photo, name=".$_POST['email'].", include=all"); Thanks!
  23. Am I wrong in my assumption that the API excludes unpublished pages by default? Maybe there's some other reason why get call wasn't finding my unpublished page, if that's the case.
  24. Hi, I've been working on this for a bit, and am stuck. Hoping one of the fine minds here can help out I want to use the API to find a page that may be published or not, then update it or create it as needed. The first issue is finding a page whose status might be either published or not. I've tried: $my_page = $pages->get("name=".$_POST['email'].", status=published|unpublished"); and $my_page = wire("pages")->get("name=".$_POST['email'].", status=unpublished|published"); Both of which seem to find only published pages. The second issue is that if I find and try to update an unpublished page (by just using status=unpublished) I get an error when I save() the page, saying that one of my fields (an Image field) doesn't exist (even though I know it does exist). Does anyone have any idea what might be going on? Thanks.
  25. Hi all, I just launched our agency's web site redesign, done with ProcessWire. This was my first site - I'm working on another one at the moment as well. This one features a single page design, while maintaining good SEO practices. It turned out to be easier than I thought, especially the caching setup, which I'm using to offset the fact that I'm essentially loading all of the site's content at once. If anyone is interested, I'm happy to chat about how it was done. http://www.agencypja.com Cheers.
×
×
  • Create New...