Jump to content

anyway

Members
  • Posts

    35
  • Joined

  • Last visited

Everything posted by anyway

  1. Hi everybody, I want to set up a mega menu. I have been experimenting for a couple of hours, but I am stuck. What would be the best approach for this? Can someone guide me in the right direction please? Any hint will be greatly appreciated! This is the HTML I want to use: <ul class="mega-menu"> <li><a href="#">Home</a></li> <!-- slideout --> <li aria-haspopup="true"> <a href="#">Menu Item</a> <div class="grid-container12"> <div class="grid-column3"> <h4>Headline</h4> <ul> <li><a href="#">First element</a></li> <li><a href="#">Second element</a></li> <li><a href="#">Third element</a></li> </ul> </div> <div class="grid-column3"> <h4>Headline</h4> <ul> <li><a href="#">First element</a></li> <li><a href="#">Second element</a></li> <li><a href="#">Third element</a></li> </ul> </div> <div class="grid-column3"> <h4>Headline</h4> <ul> <li><a href="#">First element</a></li> <li><a href="#">Second element</a></li> <li><a href="#">Third element</a></li> </ul> </div> <div class="grid-column3"> <h4>Headline</h4> <ul> <li><a href="#">First element</a></li> <li><a href="#">Second element</a></li> <li><a href="#">Third element</a></li> </ul> </div> </div> </li> <!--/slideout --> <li><a href="#">Menu Item</a></li> <li><a href="#">Menu Item</a></li> <li><a href="#">Menu Item</a></li> <li><a href="#">Menu Item</a></li> </ul>
  2. Okay... thanks for the jquery hint, Soma. I could solve it like that: $('.has-dropdown > a').click(function(e){ e.preventDefault(); }); Easier than expected
  3. has-children not clickable with MarkupSimpleNavigation? Hi, I want to create a vertical navigation with Zurb Foundation, but the template is not the important thing. Every item which has children should not be clickable. That's important. I know, there are some Foundation profiles available. I'm just wondering, if that can easy be realised with MarkupSimpleNavigation, because I have it already installed for other navigation elements on the project and it's brilliant. I have tried to bring together the following two elements. Without success. $treeMenu = $modules->get("MarkupSimpleNavigation"); // load the module $options = array( 'parent_class' => 'parent', 'current_class' => '', 'has_children_class' => 'has-dropdown', 'max_levels' => 3, 'show_root' => true, 'selector_field' => 'nav_selector', 'outer_tpl' => '<ul class="right">||</ul>', 'inner_tpl' => '<ul class="dropdown">||</ul>', 'list_tpl' => '<li%s>||</li>', 'code_formatting' => true ); echo $treeMenu->render($options, $page, $rootPage); // render default menu $has_children = count($child->children) ? true : false; if($has_children && $child !== $root) { $class .= 'has-dropdown'; // sub level Foundation dropdown li class $childUrl = "#"; // stop parents being clickable } else { $childUrl = $child->url; // if does not have children, then get the page url } Can that be done with MarkupSimpleNavigation? I cannot get it work, but I'm not really firm in PHP. Thank you for your help!
  4. Thanks a lot for your help, Jim and pwired! I did the manual installion, step by step, and everything is working fine now.
  5. PHP 5.4.16 MySQL 5.6.19 ProcessWire 2.5.3 Hi everybody! I'm new at ProcessWire, reading a lot here and did my first steps locally on a MAMP environment. I'm coming from Wordpress and PW is really great, but I'm still learning and my PHP knowledge is very little, too. Now my problem: everything is working fine locally, but not since I loaded the package up on a live environment (did it with ProcessExportProfile). The Frontend is not shown and I'm getting this error at the frontend: Error: Call to a member function numChildren() on a non-object (line 754 of /*/*/*/project-folder/wire/core/Pages.php) and this one inside the site/assets/logs/errors.txt member function numChildren() on a non-object (line 754 of /*/*/*/project-folder/wire/core/Pages.php) Also the login time of the backend is very short on the live server. Just 60 seconds. Many thanks for your help in advance and... greetings from Germany
×
×
  • Create New...