Jump to content

teppo

PW-Moderators
  • Posts

    3,208
  • Joined

  • Last visited

  • Days Won

    107

Everything posted by teppo

  1. @kongondo: I'm pretty sure we're talking about markdown extra code blocks here, not actual, executable code -- see http://michelf.ca/projects/php-markdown/extra/#fenced-code-blocks for an example. @John: are you sure your syntax is correct and you're not doing anything except simply echoing field value in your templates? Any chance you could post a sample of something that doesn't work for you here..? I'm testing this right now with above fenced code syntax and not having any issues. I'm running dev branch of ProcessWire though, in case that it makes any difference here.
  2. That's essentially what Antti suggested on the linked thread, and as you can see from Ryan's reply it'll probably be added at some point. Like @DaveP pointed out above, I wouldn't worry too much about this.. though I do know of some sites that are steadily approaching that ext4 limit and wouldn't mind if this got tweaked soon(ish)
  3. Personally I don't have an issue with current documentation, but I very rarely use it either -- cheatsheet is awesome and if something seems confusing I prefer to check it from source. This is why I'm wrong person to talk about the state of current documentation, but still: I don't think anyone here really has an issue with improving documentation *as long as it doesn't undermine it's current state of simplicity*, which seems to work very well for some folks out there. One issue is that in order to write better documentation people writing it need feedback, tips on what to improve and (optimally) even pointers to how that should happen. I'm seeing some concrete tips in what @Zahari wrote up there. Posts like that provide valuable information. One problem I'm seeing quite often these days are so-called "newbie questions" that have already been answered (usually multiple times) here on the forum.. or are *very clearly* answered within the docs. I'm not trying to discourage those who want to ask, I'm just worried since this obviously isn't optimal situation for anyone: the forum itself is great source of information, but people don't seem to find that information well enough. Have you seen @kongondos replies and how there are often bunch of links to similar threads in the end..? One problem might be that people don't do Google searches ("site:processwire.com categories" etc.) often enough. <voice type="semi-sarcastic">Perhaps what we really need is a how-to guide for finding stuff here.. and it needs to start with either "don't panic" or "forget forum search, Google it!" </voice> Sounds good and that's exactly what the wiki is for. It had an awesome start but now it's a bit quiet. If you'd fancy working for it, I'd suggest contacting Ryan (I think it needs registration, which doesn't seem to be open.)
  4. O'Reilly Media keeps sending me these sneaky ebook promotions.. and my wallet keeps crying for mercy.

  5. RT @processwire: If you like ProcessWire and haven't yet voted for the @cmscritic awards nominations, please vote at: http://t.co/KoyQUywun4

  6. @ryan: yes, it's an issue of regular mode only. I've been using inline mode since mentioning that here, so it hasn't been a problem for me anymore. It is still a bit odd, especially since there's still a config option for row number.. it just doesn't affect anything
  7. @Zahari: you're not alone with these problems -- just take a look at this thread if you haven't already. I have to agree that PW can be a bit intimidating, especially if you're coming from a system with very different concepts in play For me two main reasons PW made sense right away were that it was all PHP and the API really feels a lot like jQuery, my go-to JS library for doing.. well, anything. At the moment I'm learning AngularJS, which is totally different from jQuery and I'm having similar issues: even as it sometimes feels really awesome ("what the.. I just changed this model here and that UI element there updated by itself.. way cool!") other times it just frustrates the heck out of me, especially when trying to stick with the "AngularJS way" ("where's that bloody .on() when I need it?") I used WP for a long time for building blogs and very simple websites. For that it was awesome, but had I ever been asked to do something more complex with it I'd have been really worried. What I like about PW is that it is much more like a framework that can be used to do anything than out-of-the-box super-polished CMS that does X very well. If you just want to do one specific thing, such as build a blog, consider starting with a specific site profile instead. One thing that always makes me flinch when I hear people talking about WP is it's notorious reputation when it comes to security. Being popular and having WP's feature set (registration, commenting etc.) doesn't really help, but excuses like that only go so far. I've seen whole servers compromised simply because someone forgot to upgrade an old WP installation or to follow those mile-long guides on how to make your default installation secure. Security should be built-in, not something optional or -- even worse -- something that users are tasked to implement themselves. That's just bad design no matter how you look at it. Edit: @Zahari, you mentioned seeing some "missing blocks" you'd find useful in the docs. Care to elaborate that a bit further -- what are these missing things? Is it something we could possibly add there?
  8. It's smart to consider continuity. A website is going to cost considerable amount of money and you'll want to be sure that this money is well spent. This is an issue I haven't had to deal much myself, always having worked with a company with somewhat respectable lifespan and status, but admittedly this can be problematic for smaller and younger companies -- freelancers etc. even more so. Personally I believe the country-specific PW sites (de.processwire.com, upcoming italian site etc.) to be of critical importance here. Easiest way to tackle these worries is by pointing out that there are many qualified professionals around and their numbers are growing. It's important to know that you've got a safety net in case that things go wrong. The more people start hearing of ProcessWire, the more they'll start trusting it. It's much easier to go with something you've heard at least a few mentions here and there instead of this quirky new system your somewhat nerdy developer seems to love. (Not trying to dismiss the fact that PW is definitely easy to learn, just saying that it's not a claim that all clients can reliably confirm and thus they should be a bit wary of claims like that.) I'm a "webbuilder" working for a webdesign company and I use PW. Just like Pete said, many of these companies are relatively small, can move quite fast if they want to and perhaps most importantly it'd be foolish to dismiss a tool that can both save a lot of work (and by "work" I mean "money") and improve the quality of your work simultaneously. One motivated developer can often make a huge difference when it comes to a companies choice of tools. Around here many web design companies still use their own, custom-built, closed source tools. What was once considered a "best practice" seems to make less and less sense these days: can you imagine the costs of keeping up and running and also developing further a system that no-one outside of your company knows or can touch? Especially compared to the option of using an open source system like ProcessWire, where a lot of development comes outside of your company, that's often just bad business. I wouldn't be too surprised if more companies started looking for alternatives in the near future and that is an opportunity for ProcessWire: it's unbelievably versatile, efficient and cost of learning to develop with it is a tiny fraction of what some other systems would definitely require. It's a great deal.
  9. RT @processwire: This new site by @teppokoivula has some good articles on ProcessWire development - http://t.co/ChOutk8CiF

  10. Unless something has changed since then, it would appear that this can't be changed that easily. See this thread for a possible solution and Ryan's explanation.
  11. Thanks for all the feedback folks.. your comments (and helpful tips) are very much appreciated! Yes, logo looks just about right there Thanks for spotting the ToC issue. Headers are given IDs on the fly with JavaScript, which is probably why they didn't show up (if you viewed via page source), but there was a very real issue here: While in other browsers (well, at least in Chrome..) you scroll the document <body> to certain point, in Firefox that scroll needs to be pointed at <html>. No idea which implementation is correct (if there even is such a thing), but changing $('body').animate(...) to $('body, html').animate(...) seems to fix it for FF. Those boxes used to have borders and badge positioning worked better back then (see screenshot below -- this is a bit off though, especially padding looks weird as I've just temporarily enabled the borders.) Anyway, I'm starting to really agree with you here. Will have to experiment a bit with these. Thanks for the idea of no-screenshot thumbnail, this sounds like a valid solution.. or I could just try to come up with a thumbnail for all of them, even though in some cases it makes little sense. Also thanks for the iPhone feedback.. I've only got Android phones on me and haven't had a chance to test properly with any iProducts Looks like the GitHub plugin got kind of messed up there. Thanks for spotting this
  12. I'd be very happy if you could do that -- would love to explore this concept a bit further and method I've posted here is nowhere close to "clean"..
  13. Thanks, Adam! Typography was very much a result of trial and error, so I'm glad at least part of it works as intended. I'm a big fan of readability myself and really wanted this site to be more about readability (and usability) than eye candy. Home page started out very different and especially those over-the-place badges are a remnant of a very different style. I'll think about what to do with them, you're quite right about them being a bit off. Masonry I quite like, though you're again right in that it doesn't really make that much sense here.. admittedly it's partly there just because it was fun, but also because it makes things feel "more alive"
  14. It's my first post in this area and this barely validates as a "showcase case", but: I've finally managed to update my own Web presence, resulting in flamingruby.com. It's primarily a blog, but some of my projects are on display there too. This site has actually been up for months already -- wasn't going to post it here, but thought it'd be nice to prove that I've actually built something with PW after all.. Being responsive is fairly standard stuff these days. In this case no frameworks were involved, though; it's all hand-made, built from mobile first perspective and based on content alone, instead of predefined breakpoints. Some details I'm still not happy about, so it'll probably get tweaked every now and then, but at the moment things are pretty much in a stable state. Since it's a personal project, I've been slowly adding small tricks here and there, none of which really count as anything "special." One addition made just today, mostly as a proof-of-concept, is a combination of a simple module and new subdomain (static.flamingruby.com) to automatically serve assets from (at least in theory) cookie-free location. This is described in more detail here. For home page I built an importer module (with AngularJS GUI, which was actually quite fun) that periodically pulls content from various feeds.. a bit like what Nico did with his social timeline, but nowhere as cool as that. At the moment content is being pulled from GitHub (for which I had to put together MarkupLoadAtom) and Twitter (which kindly killed it's RSS support just in time, so I'm using rssitfor.me instead.. although that site interestingly spits out Atom and not RSS like one would expect.) That's just about it.
  15. Have you tried adding "template" there? Works for me already. Doesn't look exactly like what you posted above, though, more like this: About us, template-a 3 | edit | view | new | move Our Board, template-b | edit | view | new | move (etc.)
  16. This doesn't really seem related, though stranger things have happened. Anyway, if you haven't already tried that, empty your browser history -- this has caused us and our clients similar issues (constantly logging out) in the past. If that doesn't help we'll just have to figure out something else
  17. @Gabi: this sounded like an interesting idea, so I mocked up a proof-of-concept module (Page Render Relocate Assets) that dynamically alters asset requests to point to another location. This isn't, however, something you should yet consider production-ready. Idea is quite simple: the module just hooks after page render and alters generated markup, converting any requests to /site/assets/ to another URL specified via module settings. Just to be on the safe side this (at the moment) only alters requests that start with a double quote and /site/assets, ie. "... src="/site/assets/..." would get replaced, while "Look at my /site/assets/!" or "... src="http://example.com/site/assets/..." wouldn't. To test this I created a new subdomain and pointed it to my own sites /site/assets/. According to this blog post this should be enough, and so far things seem to work just fine. You can see it in action here: http://www.flamingruby.com/about/. Note that one of the images on that page is (for some CKEditor-related reason) embedded with full URL and thus doesn't get "relocated", but other one (the bike) should point to static.flamingruby.com instead. .. so to answer to your question here: changing assets location would require a lot of work at the moment, but this way you can serve them without useless cookies etc. as long as that's what you're after. If you're looking to share the load between multiple servers or something like that, this alone won't do the trick (though if combined with some kind of server-side replication that would be quite possible too.) I might have to take this module a bit further at some point, I'm kind of starting to like where this is going
  18. RT @codepo8: It is as important what happens when users enter wrong data into your app than when they use it as you intended. Actually, eve…

  19. Just to make sure: you're running Windows? Which PHP version? Based on some quick Googling, this sounds like a Win + PHP issue, reported in various places and affecting (at least some revisions of) PHP 5.3 and even 5.4. Edit: only place where PW uses mcrypt_create_iv() is Password.php, to generate random base64 strings for salts. If you're in a hurry, you could try commenting out that whole block (lines 160..163), but after that you really should make sure that this method still provides sensible output. I'm not too familiar with what's happening there, so I'd still suggest that you either try to fix this somehow else or at least wait for someone who knows better to step in and help with this.
  20. RT @binarybits: "The other 40,000-odd software patents issued every year are mostly garbage." http://t.co/uOuGgczsU2

  21. Direct quote from Ryan, taken from the first thread linked up there: So yes, that's how it works. Taking a quick look at source, when asked for a database query Datetime fieldtype simply converts selector value to date with format 'Y-m-d H:i:s', right after sanitizing it (in which process any non-timestamp value is parsed by strtotime()). Digging through PW source is actually fun.. and also the only way to be 100% sure what's really going on and what kind of values will work
  22. Sorry for that -- for some reason I simply copied your original (non-working) selectors and didn't fix them for my examples..
  23. #AngularJS docs seem epic.. and not purely in a good way. This is going to take a while. A very long while.

  24. Random #Emacs tip: use "column-number-mode" + "line-number-mode" to track cursor position, "count-words" to output current buffer info.

  25. What @arjen said + your first example doesn't really do anything: <a href='<?php $pages->get("/gallery/")->url; ?>'> Back </a> Second example is OK (except for the non-working selector), but what you probably meant to do in your first example was one of these: <a href='<?php echo $pages->get("/gallery/")->url; ?>'> Back </a> <a href='<?=$pages->get("/gallery/")->url?>'> Back </a> (ie. you were missing an echo or short echo statement there.) edit: fixed broken selectors to avoid confusion..
×
×
  • Create New...