Package building
Permalink
Hi there,
i build an package with the following structure:
package
- blocks
- autonav
- content
- and other...
- single_pages
- login.php
- register.php
- and other...
- themes
- themename
- darc_arc
- and the standart theme content
- controller.php
- icon.php
- LICENSE.txt
my controller.php look like this:
my question:
Why this package is not possible to install.
Thanks a lot.
i build an package with the following structure:
package
- blocks
- autonav
- content
- and other...
- single_pages
- login.php
- register.php
- and other...
- themes
- themename
- darc_arc
- and the standart theme content
- controller.php
- icon.php
- LICENSE.txt
my controller.php look like this:
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); class ThemeDarcArcPackage extends Package { protected $pkgHandle = 'theme_dark_arc'; protected $appVersionRequired = '5.4.0'; protected $pkgVersion = '0.1'; public function getPackageDescription() { return t("Darc-Arc-Theme made by Holistic Designs"); } public function getPackageName() { return t("Darc-Arc"); } public function install() { $pkg = parent::install(); PageTheme::add('darc_arc', $pkg);
Viewing 15 lines of 18 lines. View entire code block.
my question:
Why this package is not possible to install.
Thanks a lot.

I use the C5-version 5.6.1.2
I believe for PageTheme::add, the handle should be the same as the $pkghandle, "theme_dark_arc"...
EDIT: you may want to check the spelling of "dark/darc" as well for consistency as I notice now, you have two different spellings here...
EDIT: you may want to check the spelling of "dark/darc" as well for consistency as I notice now, you have two different spellings here...
Thanks a lot!
OMG i am so blind, i have done all changes and now it installs. But i cant see the theme in dashbord/themes. Anyone an idee what the problem is.
OMG i am so blind, i have done all changes and now it installs. But i cant see the theme in dashbord/themes. Anyone an idee what the problem is.
Checked out your package... Rename the folder themes/darc_arc/ to themes/theme_darc_arc/ and it will work!!
Thanks a lot,
now it works fine.
now it works fine.