arjen
Members-
Posts
1,222 -
Joined
-
Last visited
-
Days Won
8
Everything posted by arjen
-
Hi Tadashi, welcome to the forums! Have you seen this particular part of the documentation?
-
team_name=$page I always match the field against the object instead of the id.
-
That makes two of us! Great work indeed!
-
Textile
-
Looking great! However the MilkTop website isn't loading at all here.
-
You're welcome. I always use Google to search the forum, i.e. site:processwire.com adding fields through api
-
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.
-
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.
-
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.
-
Have you seen this video?
-
Vote for ProcessWire to be packaged by BitNami
-
If life was a $page we had less trouble hacking it
-
Fatal error: Exception: Invalid type to Pageimages::remove(item)
arjen replied to RyanJ's topic in API & Templates
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}' />"; } } } -
Thanks!
-
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
-
Switching fields to Language fields produces fatal errors
arjen replied to arjen's topic in Multi-Language Support
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. -
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.
-
Switching fields to Language fields produces fatal errors
arjen replied to arjen's topic in Multi-Language Support
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 -
Strange, may be a bug? What version and branch are you running?
-
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.
-
Switching fields to Language fields produces fatal errors
arjen replied to arjen's topic in Multi-Language Support
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. -
I'm having more problems on my local development enviroment since I'm using Mavericks so this one might be on me too.
-
Definately nice! I'm always amazed with names the brewers come up with.
- 8 replies
-
- bar
- restaurant
-
(and 3 more)
Tagged with:
-
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)