Jump to content

Nico Knoll

PW-Moderators
  • Posts

    1,835
  • Joined

  • Last visited

  • Days Won

    21

Everything posted by Nico Knoll

  1. @sforsman: Thanks for your great answers in the forum recently! Looks like you have a lot of knowledge about PW even with only 50 posts in the forum Keep on doing the good stuff
  2. If you store it in the session it's only saved for a short time frame isn't it?
  3. Never saw this Debug functions before. Great thing! Thank you!
  4. Super easy. One module, two clicks: http://modules.processwire.com/modules/process-export-profile/ And after you exported it just put it next to the other site-profiles in the folder of a new processwire installation. And while you're installing you can choose your profile More information: https://processwire.com/blog/posts/new-site-profiles-exporter-for-2.5/#new-site-profile-exporter-is-far-better-than-the-previous
  5. It will work if you leave it but it makes everything more insecure. Why not exporting as a site profile and creating the new page with this profile?
  6. @Marvin: Ah okay. Really cool stuff you guys are doing with/for Processwire Would love to join your company if it wouldn't be based in Heidenheim But if you need help with something or are in Berlin: Let me know
  7. A new German PW developer. Maybe we should think about a Processwire Germany meet-up. So many new German people here recently
  8. So there is no problem. Jquery is loaded nevertheless you use the url or download it.
  9. Have you checked in your console? Is the file not loading? How do you see that it is not included?
  10. I don't see a problem with that code...
  11. Take a look at this module: https://processwire.com/talk/topic/6010-fieldtypejson/?hl=json
  12. Not sure what you want to archive with that but I think there is a better way to solve that. So could you add some more details?
  13. have you maybe updated the htaccess file, too? Sometimes this is problematic: https://processwire.com/docs/tutorials/troubleshooting-guide/
  14. lightning.pw is really cloud hosting. Even if it's not 100% stable at the moment. But hey are going to integrate those snapshot/backup integration, etc.
  15. Nice
  16. Hey, I think it would be a good addition if languages would be installable via "Modules" because they're in the modules directory anyway and you can even download then over the "New" tab. But afterwards they won't appear in the languages section. Maybe the whole backend translation stuff should be modularized anyway. But not sure if that's possible.
  17. php files in /site/templates/ are protected against direct access. So you have to create a template and a (hidden) page using this template to use a page with ajax in templates folder. For example: rename the file to "ajax.php", create a template called "ajax" and a hidden page called "ajax" using this template. Now you can use ajax requests with an url like "http://yourcomain.com/ajax/". You can combime all your needed ajax stuff in this template. Just pass some "get" parameters with your ajax request like "?action=getuserinfo".
  18. Inventors and Scientists would be great. Architects would work for me too.
  19. I recently updated from 2.3.1: No problems. And I think newer PHP versions are almost always backwards compatible. Especially if it's just a minor update (5.4 => 5.4.33. A big update would be 5.5)
  20. <?php if ($page->name == "myproject3") { $myfile = "somefile.pdf"; // directly creating the path because you know where it lays and wht it's name is $myfileUrl = $config->urls->assets.$page->id.'/'.$myfile); echo $myfileUrl; } /* second option: using foreach */ if ($page->name == "myproject3") { $myfile = "somefile.pdf"; foreach($page->documents as $document) { if(basename($document->url) != $myfile) continue; $myfileUrl = $document->url; } echo $myfileUrl; }
  21. Same as kongondo
  22. And me lately
  23. Solved it with horst's work around. It still bothers me though... <?php $filepage = $pages->get('1012'); $filepage->of(false); $filepage->files->add($config->paths->root.'tmp/file.pdf'); $filepage->save(); ?>
  24. Problem is that this is a clients shared host. So I don't have access to php.ini...
  25. I like that idea! I'll try it.
×
×
  • Create New...