-
Posts
353 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Mats
-
You could also tale a look at simplecartjs. I used it with processwire here: www.stellankramer.se
-
Instead of "huidige_leden" you should use the page id for the role. Not tested but should work. The operator is correct but the type of value is wrong.
-
Roles returns PageArray. Guest = 37 Superadmin = 38 Perhaps you can try roles.name in the selector.
-
Multiple maps showing the same area within repeater
Mats replied to melissa_boyle's topic in Getting Started
Hi! Include the module only once, before the foreach loop. Right now your including it for every foreach which is not necessary. I'm not sure how you set the repeater up. Is maps_left the repeater field? And maps_left_title a text field inside the repeater? I'm not sure what google_maps_left field does/is ? You could try something like this: <?php $map = $modules->get('MarkupGoogleMap'); //Include the module once. foreach($page->maps_left as $maps_left){ echo "<h1>$maps_left->map_left_title</h1>"; echo "<p>{$maps_left->google_maps_left}</p><hr>" echo $map->render($map_left, 'map'); } ?> Here's a couple of working examples: http://tegelwebb.se/test/ http://alltpaoland.com/testwaypoint/ -
Multiple maps showing the same area within repeater
Mats replied to melissa_boyle's topic in Getting Started
Hi! Try this: $map = $modules->get('MarkupGoogleMap'); foreach ($pages->get("/page-with-maps/")->map_rep as $m) { echo $map->render($m, 'map'); } -
5.2.17. Sorry, should have checked the version. Too many hosts to keep track of...
-
https://gist.github.com/madebymats/10011139
-
Thanks for the update! Unfortunately i got an error when installing (via modules manager): Parse Error: syntax error, unexpected T_STRING (line 41 of /xxx/site/modules/TextformatterTextile/TextformatterTextile.module)
-
Hi I did something similar with radius here: http://alltpaoland.com/platser/monument-over-kronans-forlisning/naraplatskarta by using this https://github.com/mjaschen/phpgeo
-
Default setting is Reset cache for entire site. No custom rules. Bypass has the default settings (asterisk and wire_challange). I was running 2.3. I did delete wire dir, .htacess and index.php before uploading the new files. Yes. The hosting provider only mentioned memcache. Did try the apc_clear_cache() function, but i get undefined function.
-
Hello! I just updated to latest dev version for www.kalmarlansmuseum.se. After doing so the back-end behaves really weird. The front-end is working properly. Links are not working (the url shows up in the address window but noting happens), pages renders empty, occasional ERR_EMPTY_RESPONSE messages. Updating pages sometimes makes the page render as expected and sometimes renders empty. I have deleted the old wire dir and uploaded the new one three times. No change. I've never run into this before (updated two other sites on the same hosting). I've cleared the cache and checked PHP/MySQL versions. I'm starting to run out of ideas. Any ideas appreciated. Edit: After clearing and turning off ProCache the admin works again. Tried updating ProCache but the admin stops working when turning it back on. /Mats
-
The first code snippet returns "images is: Pageimage" for the default language. Switching to non-default returns "images is: NULL". The second code snippet returns "first is: RepeaterPage" for default language. Non default language returns "" (empty/nothing).
-
Done. Closed @ github..
-
Unable to toggle fields visibility in admin with the latest dev version. Browser restart fixed it.
-
Make sure the image field is called imageK1. If so, this should work: foreach($pages->get("/leistungen/dekoration/")->imageK1 as $image) { echo "<img src='{$image->url}'>"; }
-
Hi! I'm using repeaters (lang_image) for images with multi language captions in a template. These pages are used in a page fieldtype. Everything works fine with the default language (swedish) but not when i switch to english. Then i get this: Error: Call to a member function size()... My code looks like this: foreach ($page->person as $pers) { echo "<img src='{$pers->lang_image->first()->images->size(300,300)->url}'>"; } Got this working, not sure how though since the code is the same as the one i tried yesterday. Forgot to change language. Still doesn't work.
-
Welcome Paul! Check out the Page field type: http://processwire.com/videos/page-fieldtype/ /Mats
-
http://www.kalmarlansmuseum.se/ is built with PW. Uses ProCache, FormBuilder and a bunch of other modules of course. Skeleton is used on the front end. Custom google maps are used as well: http://www.kalmarlansmuseum.se/museet/rapporter/. There is also a PW-powered blog: http://www.kalmarlansmuseum.se/blogg/
- 4 replies
-
- 10
-
Hi! Could it be related to this? http://processwire.com/talk/topic/4840-autojoin-broke-processwire-p/
-
Sorting events by date with multiple event dates stored in repeaters
Mats replied to lpa's topic in General Support
Hey Ipa! Could it be an empty ready item? If so try to skip the empty item(s) by doing something like: foreach ($e->eventdetails->filter("date!=") as $d) {... -
Perhaps this could be of interest: https://www.limesurvey.org/en/
-
http://php.net/manual/en/function.setlocale.php
-
When i try to install everything seems to be fine until i get the messages below. Then the installation halts and i don't get any error messages. Database connection successful to xxx Saved database configuration to ./site/config.php The hosting provider couldn't see any errors in their logs.