Jump to content

einsteinsboi

Members
  • Posts

    132
  • Joined

  • Last visited

Everything posted by einsteinsboi

  1. Oh wow, where to start?? I started bookmarking threads and then I gave up very quickly because the whole forum is a treasure trove Like Kongondo, my one bookmarked and favorite page that I return to again and again is http://processwire.com/api/ I also spend a lot of time in the FAQs, API & Templates, and the Modules/Plugins sections of the forum
  2. RT @5exyunchained: It’s a good thing not everyone has a smartphone. Someone has to honk when the light turns green.

  3. RT @processwire: New module: Batch Child Editor, by Adrian–Quick batch creation and editing of child page titles and names. http://t.co/LX1…

  4. RT @Sports_HQ: It's not over when your losing terribly... its over when you quit. -Unknown

  5. Soma, I agree with you about the many classes, but this is the HTML/CSS template as it was handed to me by the client to port into PW, so not much I can do about it, especially because I'm not a front end HTML/CSS dev. But I'll try to figure it out some more, was just seeking some help on how to apply MSN for all the levels of classes in this particular nav No problem Soma, I'm not really asking or expecting anyone to do any work for me Thanks for your response.
  6. Just successfully used the 'Require If' functionality in #Processwire Form Builder on a complex form and now feel like a guru. LOL

  7. Thanks for the reply. I probably won't need to use the mega menu, I just need to get the dropdowns working for now. I'll take a look at the link you've posted to see if I should just go for a custom menu system and forget about using MSN for this. cheers
  8. Thanks for this fab module Soma. I've managed to get it work just fine on most of my simple sites, but now I'm having a bit of a headache and wonder if someone can help. This is for a responsive template with dropdown menus and a megamenu (which I haven't attempted to integrate yet). The dropdowns work fine on a standard screen, but on mobile or tablet the menu items in the dropdown don't work and don't open the relevant page. I think the problem is with the classes. Here's a sample of what the menu should look like (to the third level): <li class="sep"></li> <li class="primary"> <a href="features-neko-shortcodes.html" class="firstLevel hasSubMenu" >Features</a> <ul class="subMenu"> <li><a href="features-neko-shortcodes.html">Neko shortcodes</a></li> <li><a href="features-animation.html">Neko animations</a></li> <li><a href="features-footers.html">Footers</a></li> <li class="dropdownSubmenu last"><a href="#" class="hasSubMenu">Sub menu</a> <ul class="subMenu"> <li><a href="#" class="">Third level 1</a></li> <li><a href="#" class="">Third level 2</a></li> <li class="last"><a href="#" class="">Third level 3</a></li> </ul> </li> </ul> </li> <li class="sep"></li> So after several tries this is how I have my MSN call in the template: <?php $treeMenu = $modules->get("MarkupSimpleNavigation"); // load the module $options = array( 'parent_class' => 'primary', 'current_class' => 'current', 'has_children_class' => '', 'levels' => true, 'levels_prefix' => '', 'max_levels' => null, 'firstlast' => true, 'collapsed' => false, 'show_root' => true, 'selector' => '', 'selector_field' => 'nav_selector', 'outer_tpl' => '<ul class="nav navbar-nav pull-right">||</ul>', 'inner_tpl' => '<ul class="subMenu">||</ul>', 'list_tpl' => '<li%s>||</li>', 'list_field_class' => '', 'item_tpl' => '<a class="firstLevel hasSubMenu" href="{url}">{title}</a>', 'item_current_tpl' => '<a href="{url}">{title}</a>', 'xtemplates' => '', 'xitem_tpl' => '<a href="{url}">{title}</a>', 'xitem_current_tpl' => '<span>{title}</span>', 'date_format' => 'Y/m/d', 'code_formatting' => false, 'debug' => false ); echo $treeMenu->render($options, $page, $rootPage); ?> As I said I've got this working for regular displays but it won't work for other devices, and when I view page source, the classes aren't really correct. One thing is I'm still struggling with how to vary the a href classes for the different levels, and how to change the li classes for the third level menu. I'm sure there are many other things wrong with it, so would appreciate another set of eyes. cheers
  9. RT @Sports_HQ: If it is important enough to you, you will find a way. If it is not, you will find an excuse.

  10. RT @manamica: "Strive not to be a success, but rather to be of value." -Albert Einstein

  11. RT @dalepartridge: Making mistakes is something everyone does. Learning from them is not.

  12. Learning to deal with uncomfortable situations is uncomfortable

  13. Invoice templates, where to find where to find. Google’s not giving me much

  14. Whipped out two #processwire sites in one day, just tweaking now. I’m on a roll :) But i need a larger monitor!

  15. So just using the redirect option in cpanel was the easiest solution, can still access cpanel and emails. Thanks Dan @site5 support

  16. RT @Sports_HQ: If you aren't sore — you aren't trying hard enough.

  17. Domain name with its own cpanel and mail accounts on the domain. Need to redirect the domain but retain cpanel & emails. Possible?

  18. RT @processwire: Time how long it takes to do something: $t = Debug::timer(); do_something(); echo Debug::timer($t);

  19. RT @Sports_HQ: It's hard to beat a person who never gives up. -Babe Ruth

  20. RT @dalepartridge: Patience is not the ability to wait, but how you act while you're waiting.

  21. Liking todoist a whole lot :)

  22. RT @somartist: Just published an new article. Tutorial: Add custom JS in ProcessWire admin. http://t.co/pqw79Q51t3 #processwire #cms

  23. Hi Max Welcome to Processwire, good to see you here I know you will fall in love with Processwire. I've been meaning to write some newbie tutorials for PW but have been quite swamped with client work and have had some big projects going. But it's still on my to-do list. Processwire is a fantastically flexible CMS to work with, and you can bend it any which way you want, depending on your needs and skills. I dare say it's a lot more flexible than MODX ever will be, and you never need to learn another templating tag in your life You can just fit PW into the way you like to work, which is what would make creating tutorials tricky, since a tutorial would only present one way of doing things My advice is the same as everyone else's. Start with the docs, understand how template files work (http://processwire.com/api/templates/) and then get hands on. Come back to the forums and ask questions when you get stuck, and one day the light bulb will just go on and you'll be on your way There are still things I find quite challenging in PW but I'm constantly learning and building my skillset here, and I'm hoping to very soon have time to document the things I'm learning how I'm learning them. Just jump in, you can't go wrong
×
×
  • Create New...