How can i add a page template in a package?
Permalink
Hi everyone. We have started use the cms recently.
I use Concrete5 8.0.2
For theme I use
https://www.concrete5.org/marketplace/themes/cloneamental...
I found this topic https://www.concrete5.org/community/forums/5-7-discussion/adding-a-p... and followed instructions.
I developed a package. With "page_templates" folder in it.
My package install method looks like this
After install I see in templates list "Children details" but actual file from my package does not apply.
Is it possible to add page template like this with a package what is not a theme packed? If yes any help?
I use Concrete5 8.0.2
For theme I use
https://www.concrete5.org/marketplace/themes/cloneamental...
I found this topic https://www.concrete5.org/community/forums/5-7-discussion/adding-a-p... and followed instructions.
I developed a package. With "page_templates" folder in it.
My package install method looks like this
public function install() { $pkg = parent::install(); if (!is_object(PageTemplate::getByHandle('children_details'))) { PageTemplate::add('children_details', 'Children details', 'landing.png', $pkg); } }
After install I see in templates list "Children details" but actual file from my package does not apply.
Is it possible to add page template like this with a package what is not a theme packed? If yes any help?
Reading this section will point you in the right direction.
http://documentation.concrete5.org/editors/dashboard/pages-and-them...