Jump to content

Soma

Moderators
  • Posts

    6,808
  • Joined

  • Last visited

  • Days Won

    159

Everything posted by Soma

  1. Wow first time I see it! Looks great there!
  2. RT @processwire: We're building a directory of ProcessWire sites. If you've built any, please add them at: http://t.co/XqHkNmlmta – click "…

  3. You know we get older. Sometimes I find myself asking "hey was that me?"
  4. You just get the textformatter module and use the formatValue(). It accepts Page, Field, String but you can also pass an empty page and field as most textformatters also don't use it except HannaCode I think. $str = $page->textfield; $modules->TextformatterModuleName->formatValue(new Page(), new Field(), $str); echo $str; This is deprecated, but should work for most textformatters still $str = $page->textfield; $modules->TextformatterModuleName->format($str); echo $str;
  5. There was some change to labels and it is hidden via css so you also need to add a hidden class I think InputfieldLabelHidden. One of some changes in core affecting your site after update which is not documented...
  6. Guess the replacing takes happen before your's, and when it's replace in js it isn't there anymore so you can't overwrite it. There's no way around other than changing the core js, or trying hook (js) into input blur somehow before page name js does its work.
  7. + is not allowed in a page name.
  8. Ok again for the record. This hook just changes the page url and not the request of loading the page with that url. You need url segments to do that and there's no problem with underscores. Philipps solution is also good one.
  9. No need for site exporter. Just site folder and db. Done.
  10. There's people complaining about PHP or JS all the time and there's people doing something amazing with it.

  11. Also depending how many events there are you'll run into a max length of selector with digo solution no? Isn't it limited to a length?
  12. That's also a nice solution by diogo. But will increase loading all pages even more along with memory.
  13. There's a couple threads about this. This is where my solutions are: https://gist.github.com/somatonic/5420536 Pagination module works only for a single find. You can set the start limit and total yourself to get a working pager, but you have to load all pages everytime. Means it works better for smaller amounts.
  14. There's no modal at all just ajax page refreshing, ... just looks like. Close link is a actual link to hompage. Browser history is set and handled, there's various simple technics. http://caniuse.com/#search=pushstate. No backbone here necessary I guess, for such simple stuff.
  15. Nope.
  16. If you take it serious, there's a module in core "JqueryWireTabs"
  17. Do you use teflon2? (Dev)
  18. @webweaver I see you use teflon. What PW version on? Just so you are aware, teflon doesn't support 2.3.~2 - 2.4 yet with all features like field dependencies add new button on home screen, not aware of any other atm. The new default admin theme is quite nice and has some taken from teflon (sort of).
  19. Filed an issue, as I was able to reproduce this. https://github.com/ryancramerdesign/ProcessWire/issues/358
  20. Maybe turn on debug mode... ... (int) $user ... "Notice: Object of class User could not be converted to int" I'm not sure about the context where you say it doesn't work but these works always $user === $page->createdUser (if same object) $user->id == $page->createdUser->id (if same id)
  21. Look like Ryan put in my proposed code for repeater. But it doesn't seem the problem. I tested and as soon as I add a showIf in a repeater field s field it doesn't save it.
  22. Repeater doesn't support field dependencies (yet). Or is it in already?. Not sure what you meant to reproduce, but don't ujderatand. All works fine... except if you have advanced hooks or something.. Like me. Any 3rd party modules installed like any of Nico Knoll?
  23. RT @processwire: Introducing ProcessWire 2.4 – http://t.co/9csgCle7en – Field Dependencies, New Admin, Enhanced Language Support and much m…

  24. Ok just updated to 2.4 latest, still same problem. I have some hooks that hook into page save and do manipulation on data. After disabling them it seems to work again. So this raises the question what has changed in PW that those make such problems in that it doesn't save. They're pretty basic simple one before save and one after save. Makes me kinda worring about doing such thing in PW suddenly it seems that they're not as future save as I thought. Edit: seems I got it working again . Well it seems I have done some trackChange in there when cycling repeaters in the save hook. Not sure why I had them in there. Also changed the hook to Pages::saveReady and am not saving the page, just the repeaters.
×
×
  • Create New...