Move these into the theme. Make sure you’re moving them into the
theme_dreamrs directory, and not the outer package. Your package should now look like this.
Now, using your favorite browser, load the page and find the developer tools that let you inspect which assets aren’t being loaded properly. Here’s what mine looks like:
Find every relative stylesheet imported, and make sure that
<?=$view->getThemePath()?>/ is placed before it. This method, which is present on the
Concrete\Core\Page\View\PageView object that’s automatically in scope in the PHP template file, outputs the relative directory to the Dreamrs theme. This method is reliable -- it will work whether the theme is installed in the local Concrete application/ directory or within a package.
footer.php and scroll to the bottom.
Finally, let’s fix some of the images that aren’t being found. Just add
<?=$view->getThemePath()?>/ into any
<img> tags. In the header:
and in the footer:
Finally, let’s remove the “Hello World” from our Full page template, and reload the page.
Looking good! We now have a functional, rendering header and footer. But since these footers are fully static, there’s no way the Concrete editing toolbar can bolt onto this page, rendering it un-editable through the CMS. That won’t do. Let’s fix that.