Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by MichaMichaMicha

  1. The 'global' flag for field is great, untill you don't need that field anymore and you have over 30 templates that have that field assigned... It looks like you have to manually edit every template and delete the field from there, save, then check the checkbox to confirm? Is there a way to do this faster? Thanks.
  2. Ryan, would love to see this feature in a new PW version. Any chance you're implementing it in the dev version?
  3. There is. Straight from the Basic Profile that comes with ProcessWire: $homepage = $pages->get("/"); $children = $homepage->children; $children->prepend($homepage); foreach($children as $child) { $class = $child === $page->rootParent ? " class='on'" : ''; echo "<li><a$class href='{$child->url}'>{$child->title}</a></li>"; } Edit: I'm reading your question again and I'm not sure this is helping you. Wouldn't it be better to rename Root to Home and delete the current Home living under Root? Edit2: I'm now reading the first sentence of your question and finding myself completely useless...
  4. Thanks, nice to see someone was thinking the same.
  5. What are the odds. Totally unaware of this topic, less than two weeks later, I find myself in the need of some sort of hasTags function. Voila http://processwire.com/talk/topic/3607-module-templatehastags/ Edit: I now realize you might've been talking about Field Tags while the module I created was made for Template Tags. Keep that in mind.
  6. While creating this Module I realized maybe this should be included in the Selectors? Ryan, what do you think? Or maybe it is more a visual representation and it should not be used like this?
  7. Check out the Advanced tab in a template detail view. There is a field called tags. You can use it to group templates in the Templates List. I used to use a regex each time to check for the presence (or absence) of a tag, but now I have this Module so it's more solid.
  8. Module: TemplateHasTags Simple Module that provides a method for checking if the current template has got (or has not got) one or more specific template tags. Wanted to control the visibility for some blocks on the frontend in the backend without modifying the code. This seemed to be the best way. Returns true if the currently used template: -- has the tag "detail" but not "special" $page->hasTags("detail !special"); -- does not have the tag "listview" $page->hasTags("!listview"); You can also use $page->hasTag("lorem ipsum"); Module link
  9. Oh, yes, that should be fixed. I'll try to take a look this weekend.
  10. Looks good, but can't help myself noticing the vertical 1px difference in the dotted top lines (one above menu, other above the content). Latest Chrome OSX. Also noticed the logo isn't clickable, maybe because the homepage = workpage, but it confused me for a moment But it's nice and clean! Tnx.
  11. Oh my, I was literally about to start on that this morning. Looking forward to the result
  12. How about a Dutch landing page for ProcessWire, like the German version? Would be kind of cool. Any plans for that? I'm willing to do my part
  13. The minute I read this I thought: "You are gonne love ProcessWire" I've spent a horrible year using ExpressionEngine and my life brightened up when I gave ProcessWire a try. Enjoy.
  14. Looks great, nice styling. For the tables I guess you could also use a Repeater field. Might even be more client-friendly.
  15. Module: MinifyHTML Simple module, didn't even plan to add it to the forum untill owzim asked me to. Description: This module takes the HTML output and then minifies it, and removes all comments from it but leaving the conditional comments in place. Usage: Just install, nothing to configure, works automatically. URL: http://modules.processwire.com/modules/minify-html/
  16. Ollie, it is stunning fast. Just out of curiosity, what selector are you using to get the "Ook op deze site..." carousel? Cause the pages it is referring to use different templates/parents I guess..
  17. echo "<ul class=\"breadcrumbs\">"; foreach($page->parents() ->append($page) as $parent) echo "<li".($parent == $page?" class='current'":"")."><a href='{$parent->url}'>{$parent->title}</a></li>"; echo "</ul>"; This should do the trick, if that's what you're looking for. Note: not tested for syntax-errors, typed it directly in the commentarea.
  18. You could try this: http://www.456bereastreet.com/archive/201105/styling_ordered_list_numbers/ content:counter(li); and counter-increment:li;
  19. Shouldn't $page->numChildren be $page->children->count() ? You don't want the unpublished and unauthorized pages, right?
  20. Recently I set up ProcessWire for 3 environments: - Development - Testing - Production From the very beginning I've had the issue when logging in in the admin the WireException "This request was aborted because it appears to be forged." gets triggered. I've already changed the vars in config.php: //different for each env. $config->sessionName = 'wireDEV'; $config->sessionName = 'wireTEST'; $config->sessionName = 'wirePROD'; $config->sessionChallenge = false; $config->sessionFingerprint = false; It even happened to someone that has only logged in to Production. I'm very sure the assets folder and the config.php in the site folder both have 777 permissions recursively. I've added phpcode to remove all cookies when the WireException triggers, that sort of seems to fix the problem, only people have to login twice to get in the admin... Does anyone know what could be wrong?
  21. Looks like a .htaccess issue. Maybe there is a rule in your .htaccess that forces all subdomains to the www. version? Might want to add an exception for each subdomain? https://github.com/ryancramerdesign/ProcessWire/blob/master/htaccess.txt#L89 That is the line (and below) for the redirect of subdomains, my best guess you have a similair line like that in your MODx .htaccess
  • Create New...