Jump to content

MatthewSchenker

PW-Moderators
  • Posts

    677
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by MatthewSchenker

  1. Hey, Illy helps me get started every day in my own private cafe (aka Kitchen). Luckily, there is a place here where we can get slightly out-of-date tins for just $4.00. Thanks, Matthew
  2. Gretings everyone, I am working on a site for an arts organization, and they are looking for imaginative interactivity... I did some searching to see what various organizations and museums are doing, and discovered the Whitney Museum's "For Kids" site. I think the site has a lot of impressive elements. But the reason I'm sharing it here is because everything in there feels like a great example of what can be done with ProcessWire. Check it out here: http://whitney.org/ForKids Just a bit of inspiration. Thanks, Matthew
  3. Greetings, Seems to happen a lot around here... Thanks, Matthew
  4. Greetings, What diogo is showing you is the SQL syntax for saying "not equal to." In other words, this statement says, "Find all pages using the 'entry' template where the 'drink' field is not empty." In other words, only grab pages where a drink was entered. The way it is shown now, you would get repeated drinks in your list. Are you hoping instead to just cite each drink that is mentioned at all in any blog post? Thanks, Matthew
  5. Greetings, Manfred: I don't directly compare my sites to Facebook, Microsoft, and the NY Times. Kind of the opposite... I was trying to support Joss's point that the strict list of errors that show up in the Validator do not necessarily mean something is wrong with the site. I definitely think we should run our sites through a validator to be aware of what they say, but we should also be nuanced in our assessment of these things. Thanks, Matthew
  6. Greetings, Nice Joss! But are you sure you wouldn't be better off doing the site with Joomla? Regarding validation errors: I think it's great to run our sites through the validator, but I find that most of the time it's a bunch of little ones. Also, just for fun I often run major sites through that validator to show how even "the best sites" have errors! For example... Microsoft - 515 errors NY Times - 379 errors Facebook - 33 errors Techcrunch - 20 errors So with 22 errors, you are doing better than Facebook! Thanks, Matthew
  7. Greetings, apeisa: for a recent project, I used SourceTree and the GitHub app. I found SourceTree to be strangely confusing, and definitely opted for the GitHub app. Thanks, Matthew
  8. Greetings, mindplay.dk: I think Ryan and others here are exceptionally good with challenges! I have the same mindset as you: I am always testing, and I believe challenges are good for ProcessWire. I think Ryan definitely embraces healthy challenges! I believe that when a system is as great as ProcessWire, it benefits from being compared to other terrific systems. That's my intention when I bring up Laravel or other frameworks. Like you, I realized very quickly that such challenges go nowhere with The Big Three systems. The more I use ProcessWire, the more I see that it conquers major design/development territory. Bringing up isolated challenges -- as long as it's done with the intent to build and improve -- can help ProcessWire conquer the remaining territory. Thanks, Matthew
  9. Hello, SiNNuT, I was referring to the core assumption in Laravel (and CodeIgniter) that your controller is a URL, with each function more or less a segment. But I know that using routes instead of controllers is becoming more general practice now, especially with Laravel. I actually see more flexibility with ProcessWire, in some of the ideas we are discussing here. By "ProcessWire controller," I was just making a shorthand reference to the ideas presented in this discussion. Thanks, Matthew
  10. Hello Everyone, I somehow missed this discussion until now... I've built sites with Laravel, and before that with CodeIgniter. Then I discovered ProcessWire. Laravel is an amazing framework. However, after close scrutiny I say ProcessWire has the potential to be even better. Already, ProcessWire allows deep and flexible functionality that takes extra work in Laravel. The syntax of ProcessWire is even more "expressive" than Laravel for a majority of needs. With ProcessWire, we achieve that tricky balance of having the essential core management/development powers of a CMS, and yet maintaining the flexibility of a framework -- which is how ProcessWire earns the CMF title. With many other systems, you either have too many core assumptions (the Big Three), or too many core functions must be done repetitively (frameworks). Now, I can pinpoint a few isolated areas where Laravel has powers not yet in ProcessWire. But one by one I find ways to take care of them. For example, I had wondered about the need for a forms library in ProcessWire, but all it takes is the inclusion of a library like Zebra forms and we have it. Actually, it ends up even better! Still, I think there is good reason to compare ProcessWire to Laravel. That way, the last few remaining spots might be addressed. I already prefer to build all my new projects with ProcessWire. There is no doubt in my mind that if ProcessWire continues along the path it is on, there won't be any advantages to using Laravel. Thanks, Matthew
  11. Hello, Peter, this seems like an excellent strategy -- dynamic includes that pick up the selection from a dropdown (page) decision to render a specific template! Going further, I can imagine expanding on this by allowing two, three, or more dropdowns, and with some logic rendering various combinations of layouts based on the choices. A somewhat separate thought: in frameworks like Laravel, the controller (among other roles) determines the URL based on the function being called. I like this aspect of controllers. I wonder how we might use a ProcessWire controller to determine the URL, perhaps even building on the idea Peter describes? I wonder if this might also be one of the solutions for another discussion underway: http://processwire.com/talk/topic/3145-multiple-views-for-templates/ Thanks, Matthew
  12. MatthewSchenker

    The Future?

    Greetings, This is terrific news, and I'm glad INTERCAL is finally getting some recognition! I have found that development time -- compared with modern PHP frameworks -- can definitely be cut down by about 40% - 50%. There are some nice open-source plugins for importing VisiCalc scripts into INTERCAL. Then there are the PDF-to-card converters, which simultaneously create audio files that can be sent via the latest coupler technology. I think WordPerfect now supports templating for these cards. Finally, I'm finding that creative uses of GoSubs is replacing the need for functions in much of my code. Thanks for posting, Matthew
  13. Greetings everyone, As Ryan mentioned above, I am going to develop a ProcessWire showcase site. I am currently working out the structural details, and I would very much like to hear opinions from the community about design. I also have my list of inspirational sites, which I would like to share here. I was going to start a new discussion to explore structural and design ideas of the showcase site, but -- if Lance doesn't mind -- let's use this discuasion as the place to share ideas. Thanks, Matthew
  14. Greetings, Thanks Ryan... Yes, at the moment I am simply showing what's possible, so the table loads all 533 pages and all 58 fields at once! This is NOT the way it will work when the site launches. However, it's a good test in a way because it's loading all of that data -- and on a shared server. ProcessWire performs well! For the real site, only maybe 10 fields will be included in the table, and I am planning to have the user choose pre-filters before the table renders. I really like using DataTables with ProcessWire. In fact, the two are similar in their attention to detail and clean code. With a little creativity, DataTables can be part of a custom ProcessWire interface for clients. More on that later! Thanks, Matthew
  15. Greetings Everyone, I am building a site for a public television station using ProcessWire, and I am making use of JQuery datatables to allow admins to display and sort show listings. NOTE: The site is in its very early stages at the moment, but I wanted to at least show how I'm using databales with ProcessWire. It's pretty incredible how much you can do combining ProcessWire with DataTables! To see a page in progress, with 533 listings, look here: http://50.22.43.61/~wnpt/tennessee-crossroads-listings/ Thanks, Matthew
  16. Greetings, I just edited the first post so it now contains the updated code. I have left two versions of the form and success page posted, so people can see what everything looks like without file uploads. Then there are the form and success page with file uploads. Of course, be careful to change the references to match your own fields, paths, and messages. There are of course a few other steps that others may want to add to the forms I posted. But they work. And of course Soma has posted some great examples of how to do this. I'm glad to have worked through this so we can arrive at some code that handles file uploads. Thanks, Matthew
  17. Greetings, Excellent! Now we need to put a similar effort together for those of us in the US. After all, ProcessWire originated here! Or maybe Nico could include a cruise across the Atlantic in his Interrail planning? Thanks, Matthew
  18. Greetings. Are we just talking about setting two different paths for the same template, then displaying a different layout/fields for each one? Let's say I have "list" view that combines several different templates, say for an author site. I might have different templates for each subject category (history, fiction, comic novels, how-to, etc). But then I want to have a list page that displays the latest five entries from each of those categories. I definitely see how it would be good to be able to specify relative paths as Ryan suggests. But I just wanted to say that there is already terrific versatility and power in the way Ryan conceived ProcessWire -- making more than one template for the layouts/fields you want to display. Thanks, Matthew
  19. Aha! There's the thing... I was wondering about that. Also, probably due to the same point, I was getting an error using simple ProcessWire "get" reference to a template. I actually took the code out of a function, and then -- as you described -- used the config reference instead. Everything works. Thanks again, Matthew
  20. Greetings, Thanks Pete for drawing our attention to it. I haven't looked at modules for a couple of weeks and missed it. That is a terrific new design! Excellent job, Ryan... As if you didn't already do such a wonderful job! Thanks, Matthew
  21. Greetings Soma, I really appreciate your patience. I admit this has been a rather long discussion... I replaced the reference with this: $upload_path = '../assets/files/temp/'; And now it works... Yes, you read that correctly. It works. I mean the whole form -- file uploads and everything. I'll post the complete code shortly. Thanks for helping me through this. What kind of beer do you like? Thanks, Matthew
  22. Greetings, OK, I am willing to take the risk here of making an obvious error. Just confirming that this code: $upload_path = $config->paths->files . "temp/"; Corresponds to this directory: /site/assets/files/temp Thanks, Matthew
  23. Greetings, OK, I think we must be very close... I've reworked my code so it looks the way Ryan posted above. But there is one thing that continues to happen that seems odd... I receive this error on the "success" page after submitting the form: Destination path does not exist temp I've tried making the reference in various ways, including... $upload_path = $config->paths->files . "temp/"; $upload_path = $config->paths->assets . "files/temp/"; The "temp" folder definitely exists in this location: /site/assets/files/temp It's got permissions set to 777. I assume I am missing something really obvious, but can't see what. Thanks, Matthew
  24. Greetings mindplay.uk, Now I see what you mean. I was imagining different uses. What you're talking about reminds me of the hardwired features in CMSs like Joomla, where there is a "blog" view and "list" view for articles (pages). After years of using Joomla, I was happy NOT to have that system any longer. In ProcessWire, I simply create a second template whose function is to pull the necessary fields from the page(s) I need for my "list" view. Yes, it's a second template, but it's completely flexible how I compose that "list" view. By contrast, the Joomla system essentially forces the "list" view to be composed of certain "fields" and pre-determined layouts. In ProcessWire, we define where someone enters the "list" and "full" views, so it makes sense to me that we would use a separate template for that. Thinking this through, if there were essentially two separate views for each template, I suppose we could have a way to define which one is rendered from which entry point. But then there's the issue of how many possible alternate views might exist. I'm working on a site now where -- in addition to the "list" and "full" views -- I also have views for "featured" pages. I can imagine even more variations. Always interesting... Thanks, Matthew
  25. Greetings mindplay.dk, I've thought about this before as well, so I'm definitely interested. Describe the situation in which you would want this, then let's explore it... Depending on what you're trying to accomplish, I wonder whether conditional logic inside a template could take care of a lot of the possible scenarios. For example, let's say you wanted to have a different view depending on who is viewing the page, you could just say... If the visitor is ____, then render this section of code, if not, render this other section. The same idea could apply to detecting how they visitor got the the page, or if it's a form depending on the GET or POST data. With this approach, you could have a set of fields for the template, and only render certain ones based on the conditional test. I'd be curious to hear the particular scenarios you need to deal with! Thanks, Matthew
×
×
  • Create New...