Fixed error "Line 39 in Markdown file: Encountered unknown tag 'load'." (#5867)

I did not include the statements {% raw %} and {% endraw %} to escape the code. I have been able to set up a dev server and can confirm this new md file works. My apologies!
This commit is contained in:
Joshua Miller 2023-11-05 22:23:40 -05:00 committed by GitHub
parent 77f39230c1
commit a2b464e874
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,15 +35,17 @@ Placed here, the template can be called using the file name (ex: `render(request
Some plugins require a page with a navbar, sidebar, and content.
This can be done within a templated HTML file. Extend the file "page_base.html". This can be done by placing the following line at the top of the file.
``` HTML
{% extends "page_base.html" %}
{% raw %}{% extends "page_base.html" %}{% endraw %}
```
Additionally, you should add the following imports after the extended line.
``` HTML
{% raw %}
{% load static %}
{% load inventree_extras %}
{% load plugin_extras %}
{% load i18n %}
{% endraw %}
```
#### Blocks
@ -53,11 +55,13 @@ The current page base can be found [here](https://github.com/inventree/InvenTree
!!! warning "Sidebar Block"
You may notice that implementing the `sidebar` block does not work. The most likely issue is that you are not enabling the sidebar using JavaScript. To fix this, append the following code to the end of your template file.
``` HTML
{% block js_ready %}
{{ block.super }}
enableSidebar('stocklocation');
{% endblock js_ready %}
```
``` HTML
{% raw %}
{% block js_ready %}
{{ block.super }}
enableSidebar('stocklocation');
{% endblock js_ready %}
{% endraw %}
```