Skip to content

Why is there getPage("footer") and getExtraHtml(“footer”)? #982

Discussion options

You must be logged in to vote

Welcome on board!

<?php echo $this->yellow->page->getPage("footer")->getContentHtml() ?>

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 file content/shared/header.md can be created to include additional header content such as a tagline/slogan.

<?php echo $this->yellow->page->getExtraHtml("footer") ?>

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…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Silber-Toaster
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants