Jump to content

LostKobrakai

PW-Moderators
  • Posts

    4,956
  • Joined

  • Last visited

  • Days Won

    100

Everything posted by LostKobrakai

  1. It depends on the usecase / manageability. Beside of your suggested strategy you could also store all events / agendas / … under a single parent with just an additional pagefield, to link them to the different users.
  2. Welcome to the forum claudio. I've had a short look over your website and came to a few points. The first image on the page doesn't load after I clicked the impressum at the bottom and got back. It's just a gray bg. I'm not sure if intro should really be part of the navigation, especially as it's so short. Maybe "…mein Versprechen." (…my promise (to you)) is not the best wording to broadcast professionalism The impressum could look much better and be integrated in the main website From your portfolio I mostly get the impression that you can style the one wp base theme you used on all your sites From that I can hardly tell how good you're backend (php) skills are, which you'd certainly need a baseline of to work with processwire. Do you plan to dive into the cms and switch away from wordpress? Do you have any particular problems with your current choice of cms?
  3. RT @iA: “The phenomenon whereby ads are tied to the complete invasion of privacy is a recent one.” http://t.co/9KwTgxZx0i

  4. This does only save the page, that will be saved, but not the parent. That's why you should use Pages::saved for that case, as you shouldn't save other pages in the saveReady hook.
  5. Are you sure this line is executed? Where is the parent page saved? Also make sure it does say parent as your first code does say parents.
  6. If it's not a processwire module, why should there be anything on the forums?
  7. https://github.com/ryancramerdesign/ProcessWire/issues/1129#issuecomment-97858464
  8. You can't use spaces in selector pairs: $offerselector = 'pricetype=2'; // no need for *= except you're really searching a textfield Also for such things use not Pages::save, but rather the Pages::saved hook.
  9. I doubt this is possible without rejecting the whole page-lister permission, and therefore disabling all other listers, but I'm not 100% sure.
  10. I think that may be the most useful option as the modules dir does already work with GitHub repos. So much of the parsing logic is already existing. To be able to access private ones there would be the need to authenticate to Github, but that should also be doable.
  11. This means you're running php < 5.3.6, where this function was introduced. PW does require a php version >= 5.3.8. Therefore you need to update your php version. Also, while there are lots of german devs here, please write forum posts in english, so they are benefiting to all members here.
  12. Ups. Was blinded by the screenshot I guess
  13. The Select All / Unselect All links are a bit strangely positioned. Maybe they could be buttons in the same row as the bottom pagination, but floated to the left.
  14. You could certainly get all hooks (see the debug info in the backend) so at least you should be able to filter them down to only a single hook.
  15. The error suggests that somehow the page you're saving doesn't have a name nor does it have a parent, so please add this, so you can be sure you got the correct pages. // $data is an array of your csv data. e.g. array(1203, 1230) for your cat_adr.csv $addr = wire('pages')->get("adr_id=". $data[1]); $cat = wire('pages')->get("title=". $data[2]); if(!$addr->id || !$cat->id){ echo "$key: Could find either \$addr or \$cat" . PHP_EOL; continue; }
  16. It seems php doesn't recognize the line-endings of the file. You can either manually explode the lines by using this before the loop: $csv = explode($lineending, $csv); Or you make sure the line-endings are in a format that php does understand. Either way you need to take a look at the line-endings which are present in the file.
  17. Then I'd say not using pagetables as the inputfield is not paginated.
  18. Millions per user or millions in total. The first one would definitely be problematic, while the first one wouldn't.
  19. Yeah, that's what I thought about. It's just that I don't like to pollute the admin section of the page tree with things, that aren't admin related, but content.
  20. I'd not store the images below the user, but rather use another place in the pagetree and link them with an pagetable to the user.
  21. “Give it five minutes” by @jasonfried

  22. No need for a dependency management here, just load the tags/categories in another fashion: https://processwire.com/talk/topic/9730-get-pages-used-by-a-pagefield/
  23. The default installation profile of processwire does include a _func.php with an renderNav() function. I suggest taking a look at that one, as it does create that exact structure.
  24. What does $csv[$i] print out in the the loop? It's really strange you're not getting any errors. If it doesn't print out a thing what does var_dump(file_get_contents("angebote.csv")) return?
×
×
  • Create New...