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:
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.
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.
How to add the icon programmaticly...