Jump to content

Soma

Moderators
  • Posts

    6,798
  • Joined

  • Last visited

  • Days Won

    158

Everything posted by Soma

  1. What about the hash key in the /site/config.php? This should be different from server to server install. Or maybe try disable fingerprint setting in there?
  2. I just tested and was able to submit a comment and see the success text. I also noticed there's some script that it seems to wait for loading plusone.google.com but it's still working.
  3. Thanks alan! Well not sure what this admin theme has to do with ModulesManager and Helloworld.module?
  4. Texformatter modules aren't autoload they only get called when needed. You'd have to make it autoload to use the init in the backend, but then it's not when it's called but when autoloaded in the admin. Then you could use init to add a hook InputfieldText::render there for fields that use that this textformatter.
  5. Clear cookies and try again. It works for me but also got problems when trying around..
  6. It doesnt render or no items in cart os different thing. Clear cookies and cache.
  7. You maybe have to enter the umlauts in the InputfieldPageName module config? Though not sure that has to do with it.
  8. jQuery 1.9 wouldn't work I think out of the box for many jQuery code in PW or modules, as it doesn't have .live(), .browser() and possibly some others. At least I know some that use live, and the admin theme main.js uses .browser() to block for IE7 browsers. Other than that I think at some point we can update and encourage module developers to check their modules and make js code 1.9 friendly.
  9. Watch out for the nav2 malware just updated the gist...
  10. Nice catch joss! Yeah that was missing. The problem was that $child->numChildren isn't access aware so I use now count($child->children). numChildren also count unpublished and hidden pages. It's now fixed. I also rewrote some if else in there to keep thing short. Since I'm sick updating it here I created a snippelt. Also for Sublime2 Fetchers and myself in case I need it once https://gist.github.com/somatonic/4743011
  11. Theres clearly something wrong with the hosting as stated above by Ryan a possible next step would be to call the hosting support to ask if theres something regarding htaccess rewrite settings or possible other setting interferering. A 5O0 server error has most of the time to do with htaccess.
  12. Any more info helps, so far your last info is the most important to know...
  13. Thanks for the response. Ithink this would be no problem as youre also able to select hidden pages.
  14. Thanks for sharing. "Just copy the SmartyTemplating folder to your /wire/modules/" ... That's plain wrong. Never use /wire for modules and such. It's the core and if you provide 3rdparty modules they are always in /site/modules.
  15. Yep I updated the code again above. I had to use other classes because some css there is already hides the sublevels...
  16. Your welcome. Ok, I updated the script above a little, so it also would works for pages not on top level but further down on a branch. The second parameter can be used to hand over the prepended root page, this is to avoid it being used for it's children again, since it will result in endless recursion. So you can for example now do this: // bundle up the first level pages and prepend the root page $root = $pages->get("/about/"); $pa = $root->children; $pa = $pa->prepend($root); // Set the ball rolling... echo renderChildrenOf($pa,$root);
  17. Joss, I rewrote your script to actually work and did some refactoring. I think you'll live it. Let me know if it works. Here's the code: https://gist.github.com/somatonic/4743011 Which gives you this: <ul class='nav'> <li><a href='/'>Home</a></li> <li class='dropdown active'><a href='/about/' class="dropdown-toggle" data-toggle="dropdown">About 2</a> <ul class='dropdown-menu'> <li><a href='/about/what/'>Child page example 1</a></li> <li class='dropdown-submenu'><a href='/about/background/'>Child page example 2</a> <ul class='dropdown-menu'> <li><a href='/about/background/another-child-page/'>Another Child Page</a></li> <li><a href='/about/background/another-child-page-2/'>Another Child Page 2</a></li> <li><a href='/about/background/another-page/'>Another Page</a></li> </ul> </li> </ul> </li> <li class='dropdown'><a href='/templates/' class="dropdown-toggle" data-toggle="dropdown">Templates</a> <ul class='dropdown-menu'> <li><a href='/templates/asdasd/'>asdasd</a></li> </ul> </li> <li><a href='/site-map/'>Site Map</a></li> </ul>
  18. $class = ($child === wire("page") && count($child->parents) == 1) ? " active" : ''; if it's inside a function the scope doesn't have $page. Also I think the logik was wrong too. Maybe I'm wrong.
  19. When I have a page field that is dereferenced as single, and the pages to select from are hidden the following selector doesn't return matches. If the page is not hidden it works. Also when not using subfield selector it works even with hidden pages. No, include=hidden doesn't make a difference. I know one could make the parent of the selectable pages hidden instead, just thought I mention it. Example code $pages->find("template=basic-page, select_page.title=foo"); If the "foo" page is hidden it doesn't find the pages.
  20. This also looks interesting http://www.thinkintags.com/ We're thinking about using yaml.de in a new project at work. It looks promising as it has some good approach regarding responsive grid and accessibility.
  21. Joss what you can do is use $page->parents to evaluate the level. if(count($child->parents) == 1) { // top level page }
  22. Or simply use copy() to copy files from a dir to another. http://php.net/manual/de/function.copy.php doh!
  23. Creating files and all that http://php.net/manual/en/function.file-put-contents.php And this: https://github.com/ryancramerdesign/ProcessWire/blob/dev/wire/core/Functions.php
×
×
  • Create New...