question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I need some advice. I would like to include django_machina in my existing django application, which uses bootstrap.

I overrode board_base.html and included it in my app with custom header and sidebar. But if I include

{% block js %}
{{ block.super }}
<script src="{% static 'js/machina.packages.min.js' %}" type="text/javascript" charset="utf-8"></script>
<script src="{% static 'js/machina.min.js' %}" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
  $(function() {
    machina.init();
    {% block onbodyload %}{% endblock onbodyload %}
  });
</script>
{% endblock js %}

dropdown menus stop working.

If I don’t include upper code it seems to me that everything works. But I don’t know if there will be any troubles because of machina.init() doesn’t run.

Can you give me some advice, what should I do.

Regards.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
BrendaHcommented, Apr 25, 2018

I also got an issue with bootstrap, though it is more in the lines of the css than the js.

My website uses Bootstrap as well, so I got a fancy little navbar on top. But the css that Machina includes messes with it. Trying to find all lines that Machina adds and that conflict (mostly in the vendor css) and overwriting it in my own css is quite bothersome. I am not really familiar with LESS, but is there perhaps a way to scope the Machina css to just Machina content? By for example applying it to everything inside a container (div) with class “machina-forum” or something?

And perhaps adding Machina-specific classes to very common things like a navbar with a collapsable div would be a good idea too. Since I ended up having 2 navbar menu’s and using the hamburger-icon on the second one operated the menu of the first one, since they both used the non-specific class navbar-collapse. It would make Machina easier to integrate in existing sites, I think.

Another question: which version of Bootstrap does Machina use and include? Because it seems that I have a different version in which the breakingpoints are different (and my navbar structure is a bit different). I now have a hamburger-icon (the toggler) and an expanded menu between 769 and 991 px viewport. :-s

0reactions
fcimesoncommented, Feb 2, 2019

I too am looking forward to the Bootstrap 4 compatible version. Is there a method for getting notified when it is ready?

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · twbs/bootstrap - GitHub
The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web. - Issues · twbs/bootstrap.
Read more >
10 Most Common Bootstrap Mistakes That Developers Make
Common Bootstrap Mistake #9: IE8 and older browsers incompatibility issues. Bootstrap is built to work at its best in the latest desktop and...
Read more >
Wall of browser bugs - Bootstrap
Browser(s) Summary of bug Upstream bug(s) Bootst... Edge Visual artifacts in scrollable modal dialogs Edge issue #9011176 #20755 Edge Active position: fixed; flickers when scrolling...
Read more >
Issues for Bootstrap | Drupal.org
Title Status Priority Category Version Bootstrap upgrade from 3.41 to latest version Active Normal Task 8.x‑4.x‑dev Drupal 10 compatibility fixes Needs work Normal Bug report...
Read more >
Bootstrap Issue - Question - JoomShaper
We have an issue with different versions of bootstrap between Helix and RS Directory of RS Joomla. We asked them this: The gallery...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found