build a theme like a package?
Permalink
I'm seraching from the doc to the forum to keep the answer but i think the answer is no..
I want to create a template that would have a db.xml, that can create a single_page for the dashboard and have her page type'controlers inside the theme.
Is my question completly stupid or not?
I want to create a template that would have a db.xml, that can create a single_page for the dashboard and have her page type'controlers inside the theme.
Is my question completly stupid or not?
Thanks you for your answer.
I'm really sorry if i'm not clear.
I already know about package. But my need is to build a theme (like dark_chocolate) WITH inside it a db.xml, single pages and other controlers..
..And i think is not possible.
Thanks again
I'm really sorry if i'm not clear.
I already know about package. But my need is to build a theme (like dark_chocolate) WITH inside it a db.xml, single pages and other controlers..
..And i think is not possible.
Thanks again
I think that is what you want -- instead of building a theme with a package inside, you build a package with a theme inside. It should do exactly what you want it to -- it will allow people to be able to install the package, and then after they install the package, they will be able to activate the theme. And the theme will have access to any blocks or controllers or other code that the package installed.
-Jordan Lev
-Jordan Lev
Thanks Jordan. This feature is really nice.
You can have a db.xml in the root directory of your package, which will automatically install with the package. To dashboard page, you need to create a single_pages/dashboard/package_name/view.php inside your package folder. And then create the controller in controllers/dashboard/package_name/controller.php
Finally to install your single page with your theme package you will need to add the following lines to the install function in the main controller.php