Problem with header files #729
Unanswered
pixeldrift64
asked this question in
Help questions
Replies: 1 comment
|
Reading the documentation over again and delving into the webengine code, I do think that my understanding was incorrect and that the intention is to load multiple header files as is happening. The issue I'm having is with understanding the appropriate usage of partials, components and header/footer files. I have an application where if you're logged in I want you to see one layout, and the rest / auth screens I want to show another. The authed template also includes some user specific info in a sidebar, so I tried creating a component for this but I'm struggling to load it in, so I keep going back and forth between different methods and I think that's why I'm struggling. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have a top level page/_header.html file, which works well for the application.
I want a separate layout on my login page, with the view located at page/auth/login.html. I created page/auth/_header.html to customise the auth section, but what is actually happening is that both header files are being loaded.
I was reading the docs and my understanding and expectation would be that the header in page/auth would be loaded instead of the other one. I'm just wondering if I've misunderstood something and this is the intended functionality or if there's perhaps an issue.
Thanks
All reactions