class PageTheme within a package


which class must be extended by the class PageTheme within a package?

When I extend \Concrete\Core\Page\Theme\Theme the concrete5.7 UI is not formatted. All the links from the concrete5.7 UI are unformatted text links under my page content.

When I extend ‚Theme‘ the UI is formatted and concrete loads alle the assets but is showing me the error: Class 'Concrete\Package\FoundationSites\Theme\FoundationSites\Theme' not found.

How must the class PageTheme look whithin a package?


View Replies:
formigo replied on at Permalink Reply
The page_theme file should be something like this...

namespace Concrete\Package\PackageNameCamelCase\Theme\ThemeNameCamelCase;
use Concrete\Core\Page\Theme\Theme;
class PageTheme extends Theme {
core77 replied on at Permalink Reply 1 Attachment
In header.php and footer.php I don't load any assets while searching for the error.

Take a look at my page in the attachment. In the network tab of the chrome dev-tools the concrete ui assets are not shown...
core77 replied on at Permalink Reply
When the theme is applied, the concrete5.7 sidebars don't load properly. They are not formatted because no assets for the ui are loaded.

Somebody knows why?
core77 replied on at Permalink Reply
Always put this in your HEAD, then your stuff works :-)
<?php Loader::element('header_required')?>