JS and CSS Assets not working on new page type

Permalink
Hi all

I made a custom template and added JS and CSS assets like in this video:https://www.youtube.com/watch?v=FsWc09wR0Pc&list=UUywmkk3TWHLcYy...

Now i added a new page type (via page types menu). After I created a new site (with this new page type) i wanted to change the assets-settings of an area or a block. But the assets are not clickable anymore (see screenshot).

Can anybody help me?

1 Attachment

 
wzk replied on at Permalink Reply
Anybody ever had a problem like that?
Quanthir replied on at Permalink Reply
Probably your bootstrap js files are crashing. The problem is when you login to the Concrete5 , it loads also twitter bootstrap files. So you need to tell Concrete5 to your theme provides bootstrap files. You can do that in your page_theme.php file:

<?php
namespace Application\Theme\MyTheme;
use Concrete\Core\Page\Theme\Theme;
defined('C5_EXECUTE') or die("Access Denied.");
class PageTheme extends Theme
{
    protected $pThemeGridFrameworkHandle = 'bootstrap3';
    public function registerAssets()
    {
        $this->requireAsset('javascript', 'jquery');
        // Telling Concrete5 to this theme provides bootstrap css and js files.
        $this->providesAsset('css', 'bootstrap/*');
        $this->providesAsset('javascript', 'bootstrap/*');
        // Telling Concrete5 to include this files because this theme needs it.
        $this->requireAsset('javascript-conditional', 'html5-shiv');