So I'm building out an IWS plugin and I've built a few different templates with the same navigation in them so I wanted to see if I could pull the code out of the file and use an include.
So I took the code and put it into a file named "_navigation.html" but I can't figure out the path to use for the #include in my "index.html" template. I've tried the following but they all cause "internal server error":
#include "_navigation.html"
#include "templates/_navigation.html"
#include "<plugin_dir>/templates/_navigation.html"
#include "/<plugin_dir>/templates/_navigation.html"
#include "../<plugin_dir>/templates/_navigation.html"
and a bunch of other silly ones that I was pretty sure wouldn't work
I took a look at the "basicpage.html" template and it's using the exact functionality I want to setup but I can't get it to work.
Any thoughts on what the proper include path might be? I'm stumped and I hate having to jump around to multiple templates to make a simple navigation change.
Huey