What's wrong with this page_theme file?
Permalink
Always seem to run into problems when I try to use 5.7 for a project :-/ Sure I've run into this issue before, but can't seem to fix this time.
Can anyone point me in the direction of the no-doubt obvious error in this page_theme file? My theme is simply not loading jquery when logged out. I've tried uninstalling, reinstalling, renaming the theme to no avail.
I'm sure the page_theme file is being ignored, as I can put deliberate typos into it and don't get any errors. Although it does show in the page type list when you install the theme.
Can anyone point me in the direction of the no-doubt obvious error in this page_theme file? My theme is simply not loading jquery when logged out. I've tried uninstalling, reinstalling, renaming the theme to no avail.
I'm sure the page_theme file is being ignored, as I can put deliberate typos into it and don't get any errors. Although it does show in the page type list when you install the theme.
<? namespace Application\Theme\Accommodation; class PageTheme extends \Concrete\Core\Page\Theme\Theme { public function registerAssets() { $this->requireAsset('javascript', 'bootstrap/*'); $this->providesAsset('css', 'bootstrap/*'); $this->requireAsset('javascript', 'jquery'); } }
The problem was being caused by using a capital letter 'A' for the theme folder. I changed it to lowercase and edited page_theme accordingly and hey-presto we're working. Crazy.
This thread gave me the clue, hopefully this new one will save others some stress!
https://www.concrete5.org/community/forums/5-7-discussion/themes-not...