
arjen
Members-
Posts
1,222 -
Joined
-
Last visited
-
Days Won
8
Everything posted by arjen
-
Renobird, Would you be so kind to share some code examples of how you have been using this?
-
Thanks Ryan, the CSS solution was a real lifesaver today!
-
There are several options: Check if the $p has a specific template (or any other field). if(count($children) > 0 && $p->is("template!=news-item|other|template")) Or exclude above the loop like: $children = $p->children->not("template=news-item|other|template"); Or filter above the loop like: $children = $p->children->filter("template!=news-item|other|template"); See the excellent cheatsheet for more options in the PageArray/WireArray. Another option might be to use to use soma's navigation module.
-
You should echo your properties. I would code it like this: <?php $properties = $pages->find("template=properties"); foreach ($properties as $property) { echo "<div><a href='{$property->url}'>{$property->title}</a></div>"; }
-
You can try a few things: Check if other urls do work? Have you checked the file permissions? Does a clean, new install work?
-
Can we see the error somewhere? What version of PW and FB are you using? Perhaps you should change the httpHosts array in your config.php file: $config->httpHosts = array('localhost', 'example.com', 'www.example.com');
-
User with "Administer users permissions" can not add users
arjen replied to Raymond Geerts's topic in General Support
Raymond, have you set the proper rights on the user template as well for the editor/manager role? -
Thanks guys for stepping in! Slapped my forehand a few times with that one This hidden gem is truly a hidden gem
-
See the cheatsheet. Usually you use this to change values on pages and save them through the API. I don´t know why to use it here. Kongondo might explain that
-
Completely stuck with a templage coding matter - help appreciated
arjen replied to totoff's topic in API & Templates
Try instead of: echo $out; this: return $out; You are now echo'ing the output within the function which is called before in your template file. With return it is outputted within the function renderReferenceList(). -
Atom (before that Sublime Text)
-
Have you enabled debug mode or looked at the logs? You should get more information to debug on than "Internal Server Error".
-
I still have the same problem. I initially thought I fixed the issue, but it's still here. It's really strange since it seems random. Inline mode always works here too.
-
Our mother company is large company which deals with hosting and domainname registration. They generate most of our revenue through online checkout. There are people who don't understand the process and the chat helps them a lot by giving (pro-active) advice and information. But you have to have a dedicated team trained in assisting and chatting with people. I often hear these requests from small companies with one or two employees. Chatting isn't an option for them because who is going to man the chattingchair? It also may depend on targetaudience, culture and other variables. I see a lot of small webshops where the chat is always offline.
-
Very impressive Martijn! Could you tell us more about the use case? I'm really curious what kind of situation you exactly needed this for.
-
Conflict b/w "Parent of selectable page(s)" and "Custom selector"
arjen replied to Valery's topic in General Support
I think you have to "unselect" the Parent of selectable page(s). -
You can use something like this: $template = $pages->find("template=species"); $children = $pages->find("has_parent=$page"); $windows = $template->import($children); edit: added double quotes (browsercoding is bad)
-
is there some way to extract word document (.doc) file?
arjen replied to alec's topic in General Support
You are not alone -
Been so busy these days, I hardly can catch up in the forums. This looks really nice and so useful! And like Pete said, the timing is spot-on for a project I'm working on!
-
Setup a ProcessWire environment on a fresh MacOS X install
arjen replied to Martijn Geerts's topic in Tutorials
He did it. Thanks again for sharing! -
Hi Kixe, I ran into this before. Could you describe in that topic what kind of versions (master/dev, php, mysql) you are using? It makes it easier to debug.
-
Looking great! Very nicely structured. Where are the minisites? Can't find them! Couldn't help but noticed a small typo: Martktprijzen