Custom Packages
Permalink
I had to reinstall c5 and have been working on a custom theme/package
I put my package in the packages directory and have installed it, however it does not show in dashboard/themes.
I put my package in the packages directory and have installed it, however it does not show in dashboard/themes.
What is the content of your controller.php file and your page_theme.php file?
The package was installed correctly and working before I needed to reinstall C5. The package installs correctly but it just cant be seen in the theme to be made active.
<?php
namespace Concrete\Package\Sau;
use Package;
use PageTheme;
defined('C5_EXECUTE') or die(_("Access Denied."));
class Controller extends Package
{
protected $pkgHandle = 'sau';
protected $appVersionRequired = '5.7.5.2';
protected $pkgVersion = '0.0.1';
public function getPackageDescription()
{
return t('An editable packaged copy of the default Servers Australia test theme.');
}
public function getPackageName()
{
return t('Sau');
}
public function install()
{
$pkg = parent::install();
PageTheme::add('sau', $pkg);
}
}
<?php
namespace Concrete\Package\Sau;
use Package;
use PageTheme;
defined('C5_EXECUTE') or die(_("Access Denied."));
class Controller extends Package
{
protected $pkgHandle = 'sau';
protected $appVersionRequired = '5.7.5.2';
protected $pkgVersion = '0.0.1';
public function getPackageDescription()
{
return t('An editable packaged copy of the default Servers Australia test theme.');
}
public function getPackageName()
{
return t('Sau');
}
public function install()
{
$pkg = parent::install();
PageTheme::add('sau', $pkg);
}
}