Why is there getPage("footer") and getExtraHtml(“footer”)? #982
-
Hello everyone, thank you very much for the good work, 80% of which I can use. I would like to convert the footer to an always present footer... I have read the api, but I am missing the explanation of the following variables. how are they filled and why do I need them? Greetings silver
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Welcome on board!
This API call will include the content from
The Does this answer your question? Happy coding! 🙂 |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for the answer, yes my question has been answered. Greetings Silver |
Beta Was this translation helpful? Give feedback.
Welcome on board!
This API call will include the content from
content/shared/footer.md
as global page footer. You can use it for copyright notices, imprints, social media links, privacy policy etc. A similar filecontent/shared/header.md
can be created to include additional header content such as a tagline/slogan.The
getExtraHtml()
call (also available as header and footer) should be mandatory in your layouts as it usually includes additional website ressources defined by extensions (e.g. CSS and JS files or inline code).Does this answer your question?
H…