Jump to content

Martijn Geerts

PW-Moderators
  • Posts

    2,769
  • Joined

  • Last visited

  • Days Won

    31

Everything posted by Martijn Geerts

  1. beer : [Hertog Jan](http://www.hertogjan.nl/)
  2. <quote style='diogo'>I dislike looking for a piece of garlic in my fridge</quote>
  3. it doesn't make sence but maybe you can try: if($page->template == 'student'){ $the_user = $this->users->get("name={$page->name}"); $this->users->delete($the_user); }
  4. Sometime I hide a big textarea field somewhere. Just for storing $key : $value pairs. Every line on the textarea is one pair. color : blue cms : ProcessWire beer : Grolsch more : etc. Add as much variable as you want.
  5. Does that page ($the_user) has children ?
  6. Very impressive work. Functions as how it should.
  7. Repeaters & fieldsets take a lot of space. Most of the time I need fieldsets only for dividing fields and description & label is not needed. For several projects I use a module to remove label and set border and padding to 0 for. Also, the repeater can be way more elegant, if some space is givin back to the admin. (Did not make a module for this) (ps, if someone is interested in the FieldsetSchrink module it's here on github)
  8. <ryan> Make your version number 2 rather than 002. PHP might interpret that as Octal or something. </ryan> Very good tip drove me mad a while ago !
  9. maybe use: ucfirst(strtolower($page->title))
  10. fancybox isn't compatible with 1.9. Don't know if other "plug-ins" are compatible.
  11. @horst, I really like this way of thinkin' !
  12. @Ipa For linux servers "http://www.test.com/Kapitalize/WORDS/" is different then "http://www.test.com/kapitalize/words/". So two different locations. On a windows environment, their's no difference. It's the same url. So you have 1 location. I think for consistency, always use lowercase then there's no issue. I would recommend using lowercase in all situations even if you do not use ProcessWire.
  13. put on 404 template: $("session")->redirect("/");
  14. Same here, Sinnut & Mats. Install looks like to quit while creating database tables. Tried to import the SQL manually also didn't work. Quits after creating field_summary. The weird thing is it looks like the (install) SQL isn't changed. @Mats: //side note for no errors: on line 293 on the installer "error_reporting(0);" ps, Manually install ./wire/core/install.sql, and the installer will continue.
  15. A customer wanted to disable save ( $config->demo ) for users with a specific role. I created a module for that. If you need it, it's over here. To select the role(s), go to the modules config settings. download at github
  16. No way thats not possible !!! Very impressive !!! Big tnx @Horst
  17. Or: Every repeater is a row <div class='row'> Repeater with a body field. (containing textformatter that splits the content in columns when finding a <hr />)
  18. Thank Soma, you saved the evening !
  19. Other possibility: [[page rendered]] <--- actual $page (wrapper) // child page, 2 rows in repeater [col-50]txt[/col-50] - [col50]txt[/col50] // child page, 3 rows in repeater [col-33]txt[/col-33] - [col-33]txt[/col-33] - [col33]txt[/col33] // child page, 1 row in repeater [col-100]txt[/col-100] // child page, 4 rows in repeater [col-25]txt[/col-25] - [col-25]txt[/col-25] - [col-25]txt[/col-25] - [col-25]txt[/col-25] [[/page rendered]]
  20. http://bit.ly/1dTvVsI oops...
  21. It's a pity line numbers change as code evolve, else it would be nice that you could add links to the processwire core where example are.
  22. I love this.
  23. Although small donations PayPall like things for ProcessWire I love to see. But the reason I started this topic is that Avoine, (the company where Apeisa works) was so generous to give their investment back to the community. We all benefit. I'm on this forum in free time for fun and I'm on this forum getting things done for the company I work for. The first part, (free me ) love to be involved in things where the ProcessWire community benifits. There are plenty of great developers here, sharing, writing, making PW the best place for me to be on the web. What if we work out ideas, having fun and let the build begin. Developers don't have to do all things free. The little bit payment can just be a motivator. (they actualy they deserve). And for me (the free) don't want to get the guilty feeling of leeching.
  24. For columns of text I prefer repeaters.
×
×
  • Create New...