Jump to content

teppo

PW-Moderators
  • Posts

    3,259
  • Joined

  • Last visited

  • Days Won

    112

Everything posted by teppo

  1. I'm also having problems following your question; the part about finding articles "in current page" vs. "in all of the pages" confuses me, as you've specified in your selector that you only want articles with current page as their parent. Obviously you'll only find articles below current page this way (and the syntax Adrian suggested is more straightforward way to achieve the same.) Anyway, that aside, I can't seem to reproduce your issue either. Sorting by id/-id provides results in opposite order, which kind of signals that those work as intended. What kind of results are you getting, ie. how did you realize that sort=id/-id doesn't work?
  2. This tiny module is intended as a helper for Ryan's Hanna Code module by providing a way to select existing Hanna Code tags within the editor. This is something I felt our clients needed in order to start properly using Hanna Code tags. See attached screenshot for details -- there's really not that much to it at the moment. Each editor requires it's own plugin and currently I've only cooked one up for CKEditor, where the plugin presents itself as a context menu item (visible on right click). I'm planning to expand the feature set of that one slightly and then probably convert the CKEditor plugin to TinyMCE, but that's just about it. Ideas are welcome, though. Some of the code is pretty much duplicated from Ryan's original module. I hope he doesn't mind -- though for the record I've also tried to make it very clear in the source what part that is and where it's from.. GitHub: https://github.com/teppokoivula/HannaCodeHelper Modules directory: http://modules.processwire.com/modules/hanna-code-helper/
  3. RT @mikko: There are still banks that just ask for a username and password while even Youtube and World of Warcraft support two-factor auth…

  4. Same story here; used it probably a dozen times, not a single one of those intentional. If this is what people generally prefer, I'd very much like to have it configurable.
  5. RT @smashingmag: "Every second of latency is a 0.65% increase in bounce rate." —@maccaw #fronteers13

  6. I've had reporting this issue on my todo-list for a while.. current behavior is obviously a bit off, as there are quite a few situations where you want to allow positive numbers or a zero
  7. Sounds like you're looking for $config->paths->site.
  8. RT @DalaiLama: The opponent of peace of mind is not something external, but within us.

  9. RT @stlmvin: A good thread started by @owzim on "Pushing #ProcessWire in Web Design Agencies" http://t.co/Y4ZXDHqlP1

  10. RT @WiredUK: Our pick of the 10 hottest startups in Helsinki, including @Holvi @JollaHQ @kippt @supercellgames @walkbase http://t.co/E4bIQt…

  11. RT @addyosmani: Chrome DevTools reminder: Replay any XHR (POST, GET) in the Network tab through an XHR's context menu http://t.co/dEtMYycWcD

  12. @choppingblock: just like the exception says, '%=' isn't implemented with page type fields, as it's not needed there. I've explained this in more detail in another thread.
  13. I'm seeing certain similarities with another thread, http://processwire.com/talk/topic/3530-most-selector-operators-throwing-errors/. Even the exception matches that thread perfectly. There's no "*=" or "%=" with page type field (just like that exception says.) It's not a bug or missing feature either, it's just that there's no need for such an operator. With page type fields "=" simply checks if page field value contains a value, not if it's equal to it What Antti pointed out above seems to be exactly what you're after; per your description you've got products with a field "categories" and pages with one category selected and you want to find any products that include that category in their "categories" fields. In this case this should do the trick: $pages->find("categories={$page->category}"); I'd even go as far as say that if it doesn't seem to work, the issue is probably something entirely different. Just to make sure, in your original post you mentioned field "categories" for products and your selector was "category=...", is it possible that something similar (ie. misspelled field name) is the actual issue here?
  14. Just a quick note: similar error is mentioned here, though in a slightly different context, so it might not necessarily be related to this issue at all. Still based on that thread it'd be nice to know a) which PHP version you have and b) are you using a cloud hosting platform or some other "regular" hosting, ie. typical web hotel or VPS?
  15. RT @RWD: Awwwwwww YISS. Check out that responsive site for NYC! http://t.co/qhdlRFbhqo /via @ManikRathee @tysongach

  16. Is ProcessBatcher directory directly under site/modules or is the directory structure deeper than that? Just making sure as there's a built-in limit to directory depth, though this isn't something you'll usually need to worry about. One thing you might want to try, even though checking for new modules should already handle this, is to remove all Modules* files from your /site/assets/cache/ just to make sure that module list is properly updated.
  17. This must be one of the best ProcessWire quotes ever. Just saying.
  18. Hi Marty, Have you seen the CMS Critic case story Ryan wrote a while back? That seems pretty extensive dive into this subject.
  19. At the moment @twitter, @LinkedIn and @github each have great Android apps.. for mobile users. 10.1" screen begs for a different approach.

  20. RT @npcount: Today's (Not Provided) Count is 78.62% - At this rate we'll hit 100% on 21st November 2013 http://t.co/W9JBUxfD6F

  21. @FuturShoc: wire function (wire('api-var-name')) is needed outside PW template context where $sanitizer, $pages etc. API variables won't be defined. This is briefly explained in API docs too. Most commonly this affects functions, modules (where $this->pages etc. are also available) and bootstrapped scripts. There's probably something about that internal server error in your log files (PW and/or Apache) so you definitely should check those first.
  22. Kind of pointing out the obvious, but the code Pete posted creates config ARRAY, while interrobangs approach creates OBJECT. It really doesn't matter which one you use here (especially considering that PHP array syntax isn't exactly pretty), just wanted to clarify the terminology a bit for any "OOP beginners" stumbling into this thread..
  23. Hello there! I can't seem to reproduce this -- searching with Chinese characters works just fine for me. Could you describe in a bit more detail what, where and how you're doing this? Are you talking about search in admin, site (front-end) or..? And just to make sure it's not something that's changed (though I can't think of such a thing right now) could you please provide the version of PW installed.
  24. Just guessing, but could it be that $urlcat is actually PageArray? Try $urlcat->first()->title instead (or change that "find" to "get".)
×
×
  • Create New...