-
Create
.octoprint/plugins/filetab
,.octoprint/plugins/filetab/templates
and.octoprint/plugins/filetab/static/css
-
Copy
__init__.py
to.octoprint/plugins/filetab
-
Copy
filetab_tab.jinja2
to.octoprint/plugins/filetab/templates
-
Copy
filetab.css
to.octoprint/plugins/filetab/static/css
-
Optional: Adjust the
appearance.components.tab.order
to listplugin_filetab
in.octoprint/config.yaml
if you want the "Files" tab to be placed somewhere else than after the regular tab components, e.g.:# ... appearance: components: order: tab: - plugin_filetab # ...
-
Restart OctoPrint, verify in the log that it discovered the plugin
Last active
July 22, 2024 04:35
-
-
Save foosel/86157172899666cc0658 to your computer and use it in GitHub Desktop.
OctoPrint Filetab plugin & configuration instructions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import octoprint.plugin | |
class FiletabPlugin(octoprint.plugin.TemplatePlugin, | |
octoprint.plugin.AssetPlugin): | |
def get_template_configs(self): | |
return [ | |
dict(type="tab", name="Files") | |
] | |
def get_assets(self): | |
return dict(css=["css/filetab.css"]) | |
__plugin_implementation__ = FiletabPlugin() | |
__plugin_settings_overlay__ = dict(appearance=dict(components=dict(disabled=dict(sidebar=["files"])))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#files_wrapper .accordion-heading-button a { | |
display: inline-block; | |
padding: 8px 15px; | |
font-size: 14px; | |
line-height: 20px; | |
color: #000; | |
text-decoration: none; | |
background: 0 0; | |
-webkit-box-shadow: none; | |
-moz-box-shadow: none; | |
box-shadow: none; | |
} | |
#files { | |
clear: both; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="files_wrapper"> | |
<div class="pull-right" style="font-size: 14px;"> | |
{% include "sidebar/files_header.jinja2" %} | |
</div> | |
<div id="files"> | |
{% include "sidebar/files.jinja2" %} | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yeah, there are many problems and overlapping plugin issues with many of the interface altering plugins and settings.
For instance, this plugin does not work with the widescreen plugin
I have used this one in the past but it has a few issues with layout when you alter the display width, I have a fork of it I am playing with but am not happy with yet.