dklemmt / contao_dk_mmenu

Implementation of mmenu as extension for Contao Open Source CMS
15 stars 16 forks source link

Conflict with contao-bootstrap/layout #38

Closed cmichael-de closed 5 years ago

cmichael-de commented 5 years ago

Read more here: https://github.com/contao-bootstrap/layout/issues/12

fritzmg commented 5 years ago

I don't quite get the issue. Where is mmenu or contao_dk_mmenu using the invisible class?

cmichael-de commented 5 years ago

Did you test it in combination with "contao-bootstrap/layout"? You just get the error when using "contao-bootstrap/layout".

There is no "invisible" class mod_mmenu.html5 here on github but when I create a new template "mod_mmenu.html5" in my contao project I get:

<?php if ($this->type == 'mmenu_article'): ?>
<div class="<?php echo $this->class; ?> invisible block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
    <div>

    <?php if ($this->headline): ?>
        <<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
    <?php endif; ?>

        <?php echo implode('', $this->elements); ?>
    </div>
</div>
<?php else: ?>
<!-- indexer::stop -->
    <nav class="<?php echo $this->class; ?> invisible block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>

    <?php if ($this->headline): ?>
        <<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
    <?php endif; ?>

        <a href="<?php echo $this->request; ?>#<?php echo $this->skipId; ?>" class="invisible"><?php echo $this->skipNavigation; ?></a>

        <?php echo $this->items; ?>

        <a id="<?php echo $this->skipId; ?>" class="invisible">&nbsp;</a>

    </nav>
<!-- indexer::continue -->
<?php endif; ?>

But David has a good solution posted on https://github.com/contao-bootstrap/layout/issues/12

fritzmg commented 5 years ago

There is no "invisible" class mod_mmenu.html5 here on github but when I create a new template "mod_mmenu.html5" in my contao project I get:

You are not using the latest version of this extension. Those classes have been removed in 3.0.1, as they are not relevant for this module: https://github.com/dklemmt/contao_dk_mmenu/releases/tag/3.0.1

See #36

fritzmg commented 5 years ago

@cmichael-de is this still relevant?

cmichael-de commented 5 years ago

Sorry for my late reply. You can close the issue.

You are completly right - with version 3.0.1 everything works perfect!