Jump to content

arjen

Members
  • Posts

    1,222
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by arjen

  1. Hi Tadashi, welcome to the forums! Have you seen this particular part of the documentation?
  2. team_name=$page I always match the field against the object instead of the id.
  3. That makes two of us! Great work indeed!
  4. Looking great! However the MilkTop website isn't loading at all here.
  5. You're welcome. I always use Google to search the forum, i.e. site:processwire.com adding fields through api
  6. I think you are looking for: how to create pages, fields and templates using the api. See this topic and this topic with great examples.
  7. I believe when enabling pagefileSecure ProcessWire puts the pagefileSecurePathPrefix (default = "-") automatically in the folders when: - A page with the files field is unpublished - A page with the files field has a template to which the guest role is disabled Just checked this with a fresh install. I also followed soma's steps, but I can't seem to reproduce.
  8. Have you tried switchting to the dev version/branch? You can download it on the github page. You also might want to share your complete setup. Especially on the "Access" tabs of your template.
  9. Vote for ProcessWire to be packaged by BitNami
  10. If life was a $page we had less trouble hacking it
  11. I think your } on the third line isn't supposed to be there. The foreach is getting called every time. I think you might want something like this: if (count($page->image) > 1) { $first = $page->image->first; echo "<h4>$page->title</h4>"; foreach($page->image->remove($first) as $img) { if ($img) { echo "<img src='{$img->url}' />"; } } }
  12. @lenoir: If you want to see the specific error you can find the log in /site/assets/logs.
  13. Great post and great example as usual. Really learning a lot today! I do have one question about the naming. One this, this, this and this line you are using data as width, but for the other fields you are using data_height as height and data_depth as depth. Why didn't you use data_width? Is this necessary for the first item? Or did you just name it that way? Just curious
  14. I thought of that too, but I ran disc utility and the problem still persits. If I install the latest MySQL it's broken. It I remove it and install the older MySQL version it's working. When I delete that one and install the latest version it's broken, and so on.
  15. I recently had to deal with this too. I ended up creating a checkbox field called "rtl" and added it to the "language" template. Now you can easily add a class or hardcode like: <?php if ($user->language->rtl) echo "style='direction:rtl;'"; ?> If you add another language which needs RTL you can just check the "rtl" field and don't have to change the code.
  16. With the latest dev (8c42730c4f79c894bbf380870e3c06216bf860df) branch no errors on: PHP version: 5.4.17 MySQL version: 5.1.73 When I install MySQL 5.6.14 I'm getting the errors again on the same install. I'm using the 5.1.x version of MySQL for now. If no-one is getting errors I'm giving up
  17. Strange, may be a bug? What version and branch are you running?
  18. Are the directories in /site/assests/files/ prefixed with an "-" (i.e. /site/assests/files/-123/test.pdf)? I believe by default directories with a "-" are disabled by the .htaccess. Also be sure to test in Incognito mode.
  19. More research. Now on Windows with XAMPP (1.8.3) and PHP 5.5.6 and MySQL 5.6.14. Since the MySQL versions are the same on my local development machine I think I can rule out that it's a bug regarding that specific MySQL version. Will investigate further in the next days.
  20. I'm having more problems on my local development enviroment since I'm using Mavericks so this one might be on me too.
  21. Definately nice! I'm always amazed with names the brewers come up with.
  22. I noticed 2.3.11 is just being released Nice work with the admin switcher. Is anyone else experiencing an error (unable to complete your request...) when trying to install a clean version from the dev branch? When I install 2.3.11 from the master branch and checkout to dev after installing it seems to work fine. PHP 5.5.3 and MySQL 5.5.33 (MAMP)
×
×
  • Create New...