Log message #4226024

# At Username Text
# Feb 10th 2020, 15:24 FunkadelicRelic - routes
# Feb 10th 2020, 15:24 FunkadelicRelic Other valid choices:
# Feb 10th 2020, 15:24 FunkadelicRelic @ndm - I don't see bootstrap in the list off commands no - on that last error - I get: Unknown command `cake bootstrap`. Run `cake --help` to get the list of commands.
# Feb 10th 2020, 15:19 ndm @FunkadelicRelic That sounds like the plugin actually isn't loaded. Do you see the bootstrap command in the list of available commands? Was the `addPlugin()` call actually added to your `Appplication` class?
# Feb 10th 2020, 15:18 ndm you're welcome
# Feb 10th 2020, 15:17 challgren Ty very much
# Feb 10th 2020, 15:15 challgren Cool I’ll check it out. I think my brain is fried
# Feb 10th 2020, 15:14 slackebot <ndm>
# Feb 10th 2020, 15:14 ndm btw, I've update my Bootstrap UI test app that I've used for development to CakePHP 4.x / BS UI 3.x, might be helpful if you're struggling with things, it shows you all controls, generated HTML, config, etc. https://github.com/ndm2/bootstrap-ui-test-app/tree/foc-3.x
# Feb 10th 2020, 15:13 challgren Ok, yeah this theme is a PITA. But with your hack it works and loads really fast since it doesnt have to redraw the menu
# Feb 10th 2020, 15:12 ndm @challgren No problem... I'll look into making this a little easier. Making the `<ul>` inherit the ancestor class is certainly doable, but I'll have to double triple check on how to do it, and the possible side effects
# Feb 10th 2020, 15:12 FunkadelicRelic Are the instructions wrong? Or have I missed something important?
# Feb 10th 2020, 15:11 challgren Thanks @ndm
# Feb 10th 2020, 15:11 challgren :parrotparty: it works!!!
# Feb 10th 2020, 15:09 FunkadelicRelic bin/cake bootstrap install - this doesn't work - I get the error 'Unknown command `cake bootstrap`. Run `cake --help` to get the list of commands.'.
# Feb 10th 2020, 15:09 FunkadelicRelic bin/cake plugin load BootstrapUI - this works.
# Feb 10th 2020, 15:09 ndm ``` $matcher = new Matcher(); $matcher->addVoter(new UrlVoter($this->request)); $this->Menu->setConfig([ 'renderer' => new AppRenderer($matcher) ]);
# Feb 10th 2020, 15:09 FunkadelicRelic composer require friendsofcake/bootstrap-ui @beta - this works.
# Feb 10th 2020, 15:08 FunkadelicRelic Still struggling with the bootstrap-ui install I'm afraid. I'm following the guide on GitHub for the cake-4-bs-4 branch and doing the following:
# Feb 10th 2020, 15:08 ndm like
# Feb 10th 2020, 15:08 ndm Ah, sorry, forgot to mention, you'll have to configure the voters directly in that case
# Feb 10th 2020, 15:07 slackebot <challgren>
# Feb 10th 2020, 15:07 ndm ?
# Feb 10th 2020, 15:07 ndm But it did before
# Feb 10th 2020, 15:06 challgren Its not making links active or adding the in
# Feb 10th 2020, 15:06 ndm @challgren What do you mean?
# Feb 10th 2020, 14:59 challgren No matches :(
# Feb 10th 2020, 14:45 ndm Maybe the `inherit*`/`consume*` options should somehow support not only the link element, but also the nest element...
# Feb 10th 2020, 14:41 slackebot parent::_renderNested($item, $options); }```
# Feb 10th 2020, 14:41 ndm Something quick and dirty: ```protected function _renderNested(ItemInterface $item, array $options): string { if ( !$item->hasChildren() || $options['depth'] === 0 || !$item->getDisplayChildren() ) { return ''; } if ($this->_matcher->isAncestor($item, $options['matchingDepth'])) { $options['attributes']['class'] .= ' ' . $options['ancestorClass']; } return
# Feb 10th 2020, 14:37 ndm @challgren Well, that's some uncommon positioning for the ancestor class, it's hard to cover all those cases. You should be able to do that by extending the renderer, and adding the class in `\Icings\Menu\Renderer\StringTemplateRenderer::_renderNested()`
# Feb 10th 2020, 14:33 challgren Ehh yeah no JS too unreliable with the paths
# Feb 10th 2020, 14:29 challgren I did a little js hackery and got it working, but kind of defeats the serverside component
# Feb 10th 2020, 14:26 slackebot <challgren>
# Feb 10th 2020, 14:25 ndm what exactly do you want your output to look like?
# Feb 10th 2020, 14:25 challgren hrmmm
# Feb 10th 2020, 14:25 ndm @challgren Actually, that's the intended behavior, the ancestor class is being set on the ancestor `<a>` and `<li>`
# Feb 10th 2020, 14:25 FunkadelicRelic Awesome - that's installed something! I'll have a play around with it. Thank you @challgren. Much appreciated.
# Feb 10th 2020, 14:23 challgren I think its `composer require friendsofcake/bootstrap-ui @beta`
# Feb 10th 2020, 14:22 FunkadelicRelic 4.0.3 not listed.
# Feb 10th 2020, 14:22 FunkadelicRelic 3.6.5, 3.6.6, 3.6.7, 3.6.8, 3.6.9, 3.7.0, 3.7.0-RC1, 3.7.0-RC2, 3.7.0-RC3, 3.7.0-beta1, 3.7.1, 3.7.2, 3.7.3, 3.7.4, 3.7.5, 3.7.6, 3.7.7, 3.7.8, 3.7.9, 3.8.0, 3.8.0-RC1, 3.8.0-RC2, 3.8.0-RC3, 3.8.0-beta1, 3.8.1, 3.8.2, 3.8.3, 3.8.4, 3.8.5, 3.8.6, 3.8.7, 3.8.8, 3.8.9, 3.x-dev] but these conflict with your requirements or minimum-stability.