From a2b464e87496872d1010f6c067258632e7d4fd1e Mon Sep 17 00:00:00 2001 From: Joshua Miller <37462274+CodingPupper3033@users.noreply.github.com> Date: Sun, 5 Nov 2023 22:23:40 -0500 Subject: [PATCH] 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! --- docs/docs/extend/plugins/urls.md | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/docs/docs/extend/plugins/urls.md b/docs/docs/extend/plugins/urls.md index 0bf16f3016..d3da0433ff 100644 --- a/docs/docs/extend/plugins/urls.md +++ b/docs/docs/extend/plugins/urls.md @@ -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 %} + ``` \ No newline at end of file