Jump to content

apeisa

Moderators
  • Posts

    4,632
  • Joined

  • Last visited

  • Days Won

    55

Everything posted by apeisa

  1. Direct database access is just a PDO, nothing special there.
  2. Thanks, I committed that change to github also.
  3. yellowled: what if you change this https://github.com/apeisa/ProcessRedirects/blob/master/ProcessRedirects.module#L94 from InputfieldURL to InputfieldText - does everything work ok after that?
  4. Also make sure that /site/assets/sessions/ dir is writeable.
  5. This looks great. Steve: modules need to be named with certain convention or either be autoload to be able to extend this?
  6. Pete, Linode is UK and has managed also.
  7. I think it's because that method is probably fired in another request (file uploads are ajax). Try writing $log instead of message.
  8. I think most of us do that, at least sometimes. But there are no things in coding I hate more than trying to figure out where does lonely } starts. Well, there is. Add few more ifs inside each others, and the soup is ready. When you have huge chunks of html, maybe few intended ifs and then some lonely <?php } ?> or <?php endif; ?>, you are far from readable and easily manageable code. So my preference is actually: you should have so little logic on your markup generation, that echoing the parts that go inside ifs is good (usually oneliners). When having bigger chunks, then you should have other means: using functions, includes, some object or moving more logic to controller (or using actual controller). // with little html, echoing is much cleaner (imo) if($foo == $bar) { echo "<p>Show this text and this $variable</p>"; } else { echo "<p>Show this text instead with this $otherVariable</p>"; } // functions if($foo == $bar) { echo renderStuff1(); } else { echo renderStuff2(); } // includes if($foo == $bar) { include(./markup/stuff1.inc); } else { include(./markup/stuff2.inc); } // object $markup = new Markup(); if($foo == $bar) { echo $markup->stuff1(); } else { echo $markup->stuff2(); }
  9. It's ugly stuff that probably ends some if { from earlier.
  10. Nope, not yet. I am pretty sure there will be documentation before 2.5 is released.
  11. tobaco: nope, but you can use new PageTable for that (that's in core - dev branch). It will be much faster than repeater, since it doesn't have to load all the information to a single page.
  12. http://praegnanz.de/weblog/cms-einkaufsfuehrer-2014
  13. I have never had such a need. Maybe with just some css? Pagelist has this kind of classes: PageListID1024 I have no idea though what would be best way to inject that kind of css to admin. Some examples probably on these forums. Simple autoload module would do at least.
  14. I think I am missing single git pull here
  15. I think only real issue left is PageFiles permissions. They still follow the template access.
  16. Users actually are pages in tree, so you already have what you need with page field and it's various inputfields.
  17. It's possible to localize with language support. Just translate the file InputfieldDatetime.module (if I remember right) and there is option for translation (also affects the first day of the week).
  18. I don't see any other way for files really. Maybe bundling multiple (meaning no other changes in between and max few minutes time) additions or removes into same revision. That could be done in UI only.
  19. Welcome! Repeaters shouldn't be there, since they are hidden. Do you have include=hidden in selector also? Also do you really need the name in the selector?
  20. Just a reminder: above module is only useful if sorting cannot be set based on some field or created date for example.
  21. Huge release! Congratulations Teppo! I love the preview UI, very neat.
  22. 1. Possible, but not out of the box. Probably easier, when you don't use iFrame, but embed directly as html (see section 3.) 2. Not out of the box, but possible. 3. Yes. If you have need for multiple different kind (and often complex forms), then FormBuilder is gonna be huge help in your project. If registration form is always the same, you are probably better with custom form.
  23. Not on computer, but I think you have to tell which product you are adding to cart. I would guess it assumes (without any params) that the current page is product. That's not the case here, since you are using repeaters. Try adding $item as a param to renderAddToCart method (or check source what it requires).
×
×
  • Create New...