Browsed by
Tag: PHP

Concrete5.7 Custom Login

Concrete5.7 Custom Login

In earlier versions of Concrete their was a file called site_theme_paths.php the config folder which defined whether single pages would use the default theme styling or a custom theme. In 5.7 this has been moved to the app.php file. Inside the return array place the following code. ‘theme_paths’ => array( ‘/login’ => ‘theme_name’, ),

Require and Provide Concrete5 Assets

Require and Provide Concrete5 Assets

When developing a new C5 theme the documentation on scripts and using core scripts is a bit vague for 5.7 installations. The following code allows you to tell C5 that your theme doesn’t include jQuery so load it: $this->requireAsset(‘javascript’, ‘jquery’); The following code tells C5 your theme includes jQuery so don’t load it again: $this->providesAsset(‘javascript’, ‘jquery’); This code must be placed inside the ‘registerAssets()’ function in the ‘page_theme.php’. To get the ‘page_theme.php’ file to work, the theme must be installed…

Read More Read More