Packaging theme and Page Types

Permalink
Hi,

I'm creating a theme and I'm using a package to get it all installed. Works great!

Now I have some custom page types and want to add them at installation of the package (theme). In the installation procedure I use the this code to add the page type:

$data = array(
    'ctHandle' => 'main',
    'ctName' => 'Main pagetype',
    'ctIcon' => 'main.png'
);
$pageType = CollectionType::add($data, $pkg);


The page type is added, only the icon is not used (I added the icon into the /images/icons/page_types/ directory of the package).

Should I create a fileset programmaticly?

S.

SnefIT
 
SnefIT replied on at Permalink Reply
SnefIT
Also struggling with this one.

How to add the icon programmaticly...